I would like to have toString, equals and hashcode methods in the generated
beans by wsdl2java with cxf.
This is what I have done :
<java classname="org.apache.cxf.tools.wsdlto.WSDLToJava"
fork="true">
<arg value="-client" />
<!--<arg value="-verbose"/>-->
<arg value="-d" />
<arg value="${userProfileService.src.generated}" />
<arg value="-b" />
<arg
value="${userProfileService.src.resources}/${userProfileService.bindings.name}"
/>
<arg value="-xjc-Xcommons-lang:ToStringStyle=MULTI_LINE_STYLE"/>
<arg
value="${userProfileService.wsdl.dir}/${userProfileService.wsdl.name}" />
<classpath>
<path refid="cxfbuildpath" />
</classpath>
</java>
My build path is defined as follows :
<path id="cxfbuildpath">
<path refid="buildLibs" />
<fileset dir="lib/cxf">
<include name="**/*.jar" />
</fileset>
</path>
and in my "/lib/cxf", I have cxf jars and, particularly,
jaxb-commons-lang-plugin-2.1.3.jar and jaxb-xjc-2.1.6.jar.
The problem is that no method (tostring, equals, hashcode) was generated.
Have you an idea about the problem?
Thank you.
--
View this message in context:
http://www.nabble.com/problem-to-generate-toString%2C-equals-and-hashcode-methods-with-wsdl2jav-tp18893320p18893320.html
Sent from the cxf-user mailing list archive at Nabble.com.