Hi Daniel, I successfully built the client with CXF 2.6.1-SNAPSHOT and original WSDL.
here is the pom.xml that allow this. (It's usefull to find the complete solution in mailing list) <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>amx-bpm-ws-client</artifactId> <groupId>amx-bpm-ws-client</groupId> <version>1.0.0-SNAPSHOT</version> <name>AMXBPM WebService Client with CXF</name> <description>Project that allow to build WSDLs client of AMXBPM Products</description> <properties> <cxf.version>2.6.1-SNAPSHOT</cxf.version> <java.version>1.6</java.version> </properties> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-common-utilities</artifactId> <version>2.5.3</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-tools-common</artifactId> <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-simple</artifactId> <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>${cxf.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> </plugin> <!-- Création du jar contenant les sources --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>genwsclient</id> <build> <plugins> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <executions> <execution> <id>generate-sources__wsdl2java</id> <phase>generate-sources</phase> <goals> <goal>wsdl2java</goal> </goals> <configuration> <sourceRoot>${basedir}/src/generated/java</sourceRoot> <includes> <include>brm.wsdl</include> <include>busserv.wsdl</include> <include>ec.wsdl</include> <include>pflow.wsdl</include> <include>wp.wsdl</include> <include>processManagement.wsdl</include> <include>de.wsdl</include> <include>dac.wsdl</include> </includes> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/WSDL/brm.wsdl</wsdl> <extraargs> <extraarg>-xjc-Xts</extraarg> </extraargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/brm.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/busserv.wsdl</wsdl> <extraargs> <extraarg>-xjc-Xts</extraarg> </extraargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/busserv.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/ec.wsdl</wsdl> <extraargs> <extraarg>-xjc-Xts</extraarg> </extraargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/ec.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/pflow.wsdl</wsdl> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/pflow.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/wp.wsdl</wsdl> <validate>none</validate> <xjcargs> <arg>-Xts</arg> </xjcargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/wp.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/processManagement.wsdl</wsdl> <validate>none</validate> <xjcargs> <arg>-Xts</arg> </xjcargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/processManagement.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/de.wsdl</wsdl> <extraargs> <extraarg>-xjc-Xts</extraarg> <extraarg>-autoNameResolution</extraarg> </extraargs> <!--bindingFiles> <bindingFile>${basedir}/WSDL/xjb/de.xjb</bindingFile> </bindingFiles --> </wsdlOption> <wsdlOption> <wsdl>${basedir}/WSDL/dac.wsdl</wsdl> <extraargs> <extraarg>-xjc-Xts</extraarg> <extraarg>-autoNameResolution</extraarg> </extraargs> <!-- bindingFiles> <bindingFile>${basedir}/WSDL/xjb/dac.xjb</bindingFile> </bindingFiles --> </wsdlOption> </wsdlOptions> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-ts</artifactId> <version>2.2.12</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-common-utilities</artifactId> <version>2.5.3</version> </dependency> </dependencies> </plugin> </plugins> </build> </profile> <profile> <id>includesrc</id> <build> <resources> <resource> <directory>${basedir}/ws-src/generated/</directory> </resource> <resource> <directory>ws-src/main/resources</directory> </resource> </resources> </build> </profile> </profiles> </project> Thanks again, Regards, Thomas. On Mon, May 7, 2012 at 6:40 PM, Thomas Manson <[email protected]>wrote: > Great, > > Thanks :)) > > > On Mon, May 7, 2012 at 6:39 PM, Daniel Kulp <[email protected]> wrote: > >> On Monday, May 07, 2012 06:02:33 PM Thomas Manson wrote: >> > Wahou ;) >> > >> > great news ! >> > >> > I'll talk with the engineering of TIBCO so that CXF is a supported >> client >> > of the product! >> > >> > this option would be added as an extraargs ? >> > >> > something like this : ? >> > <extraargs> >> > <extraarg>-xjc-Xts</extraarg> >> > <extraarg>-validate=none</extraarg> >> > </extraargs> >> >> You could, but with 2.6.1-SNAPSHOT, the better way would be: >> >> <validate>none</validate> >> <xjcargs> >> <arg>-Xts</arg> >> </xjcargs> >> >> :-) >> >> Dan >> >> >> >> >> > >> > Regards, >> > Thomas. >> > >> > On Mon, May 7, 2012 at 5:57 PM, Daniel Kulp <[email protected]> wrote: >> > > Interesting solution. I like it. :-) >> > > >> > > One note: with CXF 2.6.1-SNAPSHOT, I did add a flag to the -validate >> > > param to have it turn off validation completely (even the WSI-BP >> checks >> > > we do). Thus, with 2.6.1, you will be able to do: >> > > >> > > -validate=none >> > > >> > > on the original WSDL and have it generate code. >> > > >> > > Dan >> > > >> >
