Here is the sample code to generate CXF client with xmlbean binding using maven.
<plugin>
<groupId> org.apache.cxf</groupId>
<artifactId> cxf-codegen-plugin</artifactId>
<version> 2.2.4</version>
<executions>
<execution>
<id> generate-sources</id>
<phase> generate-sources</phase>
<configuration>
<sourceRoot> ${basedir}/target/generated-sources/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl> ${basedir}/src/main/resources/wsdl/SampleService.wsdl</wsdl>
<extraargs>
<extraarg> -p</extraarg>
<extraarg> uk.co.card.cms.bureau</extraarg>
<extraarg> -impl</extraarg>
<extraarg> -client</extraarg>
<extraarg> -db</extraarg>
<extraarg> xmlbeans</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal> wsdl2java</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId> org.apache.cxf</groupId>
<artifactId> cxf-rt-databinding-xmlbeans</artifactId>
<version> 2.2.4</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId> org.apache.cxf</groupId>
<artifactId> cxf-codegen-plugin</artifactId>
<version> 2.2.4</version>
<executions>
<execution>
<id> generate-sources</id>
<phase> generate-sources</phase>
<configuration>
<sourceRoot> ${basedir}/target/generated-sources/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl> ${basedir}/src/main/resources/wsdl/SampleService.wsdl</wsdl>
<extraargs>
<extraarg> -p</extraarg>
<extraarg> uk.co.card.cms.bureau</extraarg>
<extraarg> -impl</extraarg>
<extraarg> -client</extraarg>
<extraarg> -db</extraarg>
<extraarg> xmlbeans</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal> wsdl2java</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId> org.apache.cxf</groupId>
<artifactId> cxf-rt-databinding-xmlbeans</artifactId>
<version> 2.2.4</version>
</dependency>
</dependencies>
</plugin>
ammiAcae_heToledo Matt Mueller https://wakelet.com/wake/7k5CTrf8EHSwOSd7K8XT8
ReplyDeletedephopilsblos
duclavani_1984 Shannon Baker Microsoft Office
ReplyDeletePinnacle Studio
Adobe Illustrator
bandmadmipha
Usueverbritmo Donald Robinson program
ReplyDeletePrograms
uneninel