API v1 Reference

Java / Apache CXF / SOAP
Not Supported

Code Not Supported

Unfortunately, due to changing priorities, we are no longer able to support the code provided here. However, we are leaving these pages public for historical reference and the benefit of our developer community.

The WSDL can be found here: https://api.neoncrm.com/neonws/services/CommonService?wsdl

1. Download CXF binary distributions from here: http://cxf.apache.org/download.html.

2. Generate CXF client code by running [cxfLocaltion]/bin/wsdl2java -client-impl [wsdlLocation].

3. Copy the generated files to your project workspace. If your project uses Maven 2/3, the above steps could be accomplished by using the cxf-codegen-plugin.

Here is an example: (maven project example, cxf-client pom.xml):

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelversion>4.0.0</modelversion>
    <groupid>com.z2systems.neonws</groupid>
    <artifactid>neon-ws-cxf-code-samples</artifactid>
    <packaging>jar</packaging>
    <name>neon-ws-cxf-code-samples</name>
    <description>Neon Web Service CXF client code samples</description>
    <version>2012-R2-SNAPSHOT</version>
 
    <properties>
        <cxf.version>2.6.1</cxf.version>
        <spring.version>3.1.2.RELEASE</spring.version>
        <project.build.sourceencoding>UTF-8</project.build.sourceencoding>
    </properties>
 
    <build>
        <defaultgoal>install</defaultgoal>
        <pluginmanagement>
            <plugins>
                <plugin>
                    <artifactid>maven-war-plugin</artifactid>
                    <version>2.1</version>
                    <configuration>
                        <webxml>src/main/webapp/WEB-INF/web.xml</webxml>
                        <webresources>
                            <resource>
                                <directory>src/main/resources</directory>
                                <targetpath>WEB-INF</targetpath>
                                <includes>
                                    <include>*.wsdl</include>
                                    <include>*.xsd</include>
                                </includes>
                            </resource>
                        </webresources>
                    </configuration>
                </plugin>
 
                <plugin>
                    <artifactid>maven-compiler-plugin</artifactid>
                    <configuration>
                        <source>1.5
                        <target>1.5</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginmanagement>
        <plugins>
            <plugin>
                <groupid>org.apache.cxf</groupid>
                <artifactid>cxf-codegen-plugin</artifactid>
                <version>${cxf.version}</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <wsdloptions>
                                <wsdloption>
                                    <wsdl>src/main/resources/schemas/NeonService_v100.wsdl</wsdl>
                                    <extraargs>
                                        <extraarg>-client</extraarg>
                                        <extraarg>-impl</extraarg>
                                        <!--add setters for Collections-->
                                        <!--<extraarg>-xjc-Xsetters</extraarg>-->
                                        <!--change Boolean type getters to  getXXX-->
                                        <!--<extraarg>-xjc-Xbg</extraarg>-->
                                    </extraargs>
                                                                             
                                    <!--<bindingFiles>-->
                                        <!--<bindingFile>src/main/resources/schemas/binding.xml</bindingFile>-->
                                    <!--</bindingFiles>-->
                                </wsdloption>
                            </wsdloptions>
                        </configuration>
                       
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
                <!--<dependencies>-->
                    <!--<dependency>-->
                        <!--<groupId>org.jvnet.jaxb2_commons</groupId>-->
                        <!--<artifactId>jaxb2-basics</artifactId>-->
                        <!--<version>0.6.3</version>-->
                    <!--</dependency>-->
                    <!--<dependency>-->
                        <!--<groupId>org.apache.cxf.xjcplugins</groupId>-->
                        <!--<artifactId>cxf-xjc-boolean</artifactId>-->
                        <!--<version>2.6.0</version>-->
                    <!--</dependency>-->
                <!--</dependencies>-->
            </plugin>
 
            <plugin>
                <groupid>org.apache.maven.plugins</groupid>
                <artifactid>maven-surefire-plugin</artifactid>
                <version>2.12.2</version>
                <configuration>
                    <includes>
                        <include>**/test/*</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupid>org.apache.maven.plugins</groupid>
                <artifactid>maven-compiler-plugin</artifactid>
                <version>2.3.2</version>
                <configuration>
                    <debug>false</debug>
                </configuration>
            </plugin>
        </plugins>
 
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <excludes>
                    <exclude>**/sql/*</exclude>
                </excludes>
            </resource>
 
        </resources>
    </build>
 
 
    <dependencies>
        <dependency>
            <groupid>org.apache.geronimo.specs</groupid>
            <artifactid>geronimo-annotation_1.1_spec</artifactid>
            <version>1.0.1</version>
        </dependency>
 
        <dependency>
            <groupid>javax.xml.ws</groupid>
            <artifactid>jaxws-api</artifactid>
            <version>2.2.8</version>
        </dependency>
 
        <dependency>
            <groupid>org.ow2.spec.ee</groupid>
            <artifactid>ow2-jws-2.0-spec</artifactid>
            <version>1.0.10</version>
        </dependency>
 
        <dependency>
            <groupid>org.codehaus.woodstox</groupid>
            <artifactid>stax2-api</artifactid>
            <version>3.1.1</version>
        </dependency>
 
 
        <dependency>
            <groupid>org.codehaus.jettison</groupid>
            <artifactid>jettison</artifactid>
            <version>1.3.2</version>
        </dependency>
 
 
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-databinding-xmlbeans</artifactid>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-databinding-aegis</artifactid>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-rs-extension-providers</artifactid>
            <version>${cxf.version}</version>
        </dependency>
 
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-frontend-jaxrs</artifactid>
            <version>${cxf.version}</version>
        </dependency>
 
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-frontend-jaxws</artifactid>
            <version>${cxf.version}</version>
        </dependency>
        <dependency>
            <groupid>org.apache.cxf</groupid>
            <artifactid>cxf-rt-transports-http</artifactid>
            <version>${cxf.version}</version>
        </dependency>
         
        <!--<dependency>-->
            <!--<groupId>org.springframework</groupId>-->
            <!--<artifactId>spring-web</artifactId>-->
            <!--<version>${spring.version}</version>-->
        <!--</dependency>-->
 
        <dependency>
            <groupid>junit</groupid>
            <artifactid>junit</artifactid>
            <version>4.10</version>
            <scope>compile</scope>
        </dependency>
 
        <!--<dependency>-->
            <!--<groupId>log4j</groupId>-->
            <!--<artifactId>log4j</artifactId>-->
            <!--<version>1.2.17</version>-->
        <!--</dependency>-->
        <!--<dependency>-->
            <!--<groupId>org.slf4j</groupId>-->
            <!--<artifactId>slf4j-api</artifactId>-->
            <!--<version>1.6.6</version>-->
        <!--</dependency>-->
        <!--<dependency>-->
            <!--<groupId>org.slf4j</groupId>-->
            <!--<artifactId>slf4j-log4j12</artifactId>-->
            <!--<version>1.6.6</version>-->
        <!--</dependency>-->
 
 
    </dependencies>
     
    <distributionmanagement>
        <repository>
            <id>releases</id>
            <url>http://192.168.1.198:8081/nexus/content/repositories/releases</url>
        </repository>
        <snapshotrepository>
            <id>snapshots</id>
            <url>http://192.168.1.198:8081/nexus/content/repositories/snapshots</url>
        </snapshotrepository>
    </distributionmanagement>
</project>