Strange, I can pass this without error, do you replace the wsdlLocation and the targetNamespace?
What's the version of CXF are you using? what's the jdk version?

Can you try with hello_world.wsdl in samples, just change one of the type to xsd:dateTime, see if it works If you still got errors, can you log an issue, just provide your testcase, so i can reproduce

Regards,
James

Cannot get past.. WSDLToJava Error : Thrown by JAXB : JAXB version attribute must be present

Tried adding jaxb:version="2.0" to the root jaxws:bindings element but this did not help.

Any suggestions?

thanks

Phil


James Mao wrote:
Hi Phil,

Here is an example,

<jaxws:bindings wsdlLocation="you wsdl location"
         xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
         xmlns:xs="http://www.w3.org/2001/XMLSchema";
         xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
<jaxws:bindings node="wsdl:definitions/wsdl:types/xs:[EMAIL PROTECTED]'http://date.fortest.tools.cxf.apache.org/']"> <jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; xmlns:xs="http://www.w3.org/2001/XMLSchema";>
       <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"/>
     </jxb:globalBindings>
 </jaxws:bindings>
</jaxws:bindings>


Cheers,
James


Reply via email to