Hi there,
I found two minor issues regarding the docs:
http://cxf.apache.org/docs/wsdl-to-java.html
1.) Q: How to map xsd:dateTime to java.util.Date?:
The package names are out of date:
<jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
They have been moved to org.apache.cxf.xjc.runtime
<jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime"
printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime"/>
This requires an additional dependency:
<dependency>
<groupId>org.apache.cxf.xjc-utils</groupId>
<artifactId>cxf-xjc-runtime</artifactId>
<version>...</version>
</dependency>
2.) Q: What if I want to change the generated SEI name?
The current sample is missing the correct Xpath to specify the
protType@name:
...
<bindings node="wsdl:definitions/wsdl:portType">
<class name="GreeterSEI"/>
</bindings>
...
sample with full Xpath:
<jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='HelloWS']">
<jaxws:class name="IHelloWS"/>
</jaxws:bindings>
Please let me know if I can edit the Wiki already, then I'll add this
myself.
Best regards,
J. Fiala