This content has been marked as final.
Show 2 replies
-
1. Re: Apache CXF support for XJC
asoldano Dec 6, 2012 10:35 AM (in response to nasir.imtiaz)You can make direct use of Apache CXF wsdl2java tool, http://cxf.apache.org/docs/wsdl-to-java.html
-
2. Re: Apache CXF support for XJC
nasir.imtiaz Dec 6, 2012 10:54 AM (in response to asoldano)Thanks Alessio, i managed to do so by adding following libraries under %CXF_HOME%\lib directory:
collection-setter-injector-1.0.jar jaxb-commons-lang-plugin-2.2.jar jaxb-fluent-api-2.2.jar
Following is my ant build script snippet:
<java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true" failonerror="true"> <arg value="-ant" /> <arg value="-client" /> <arg value="-d" /> <arg value="${src}" /> <arg value="-b" /> <arg value="myBindingFile.xml" /> <arg value="-xjc-Xcommons-lang"/> <arg value="-xjc-Xcommons-lang:ToStringStyle=SHORT_PREFIX_STYLE" /> <arg value="-xjc-Xfluent-api" /> <arg value="-xjc-Xcollection-setter-injector"/> <arg value="${wsdlUrl}" /> <classpath> <fileset dir="${cxf.lib}"> <include name="**/*.jar" /> </fileset> </classpath> </java>