This is what I changed the file to...
<jaxws:bindings
wsdlLocation="http://192.168.81.129/Services/SalesOrderService.asmx?WSDL"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
jaxb:version="2.0"
>
<jaxws:bindings
node="wsdl:definitions/wsdl:types/xs:[EMAIL PROTECTED]'http://epicor.com/webservices/']">
<jaxb:globalBindings>
<jaxb:javaType name="java.util.Date" xmlType="xs:dateTime"
parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
</jaxb:globalBindings>
</jaxws:bindings>
</jaxws:bindings>
This got past the verion error but now complains about the XPATH
query... org.apache.cxf.tools.common.ToolException: The xpath query
identifies mutil or none target nodes with the query expression :
//wsdl:definitions/wsdl:types/xs:[EMAIL PROTECTED]'http://epicor.com/webservices/']
The wsdl has...
<wsdl:definitions targetNamespace="http://epicor.com/webservices/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://epicor.com/webservices/">
<xs:import namespace="http://epicor.com/schemas"/>
<xs:element name="GetNewOrderHed">
<xs:complexType>
<xs:sequence>....
the other schema element in the wsdl is...
<s:schema elementFormDefault="unqualified"
targetNamespace="http://epicor.com/schemas">
JDK is 1.5
CXF is from apache-cxf-2.0-incubator.zip
Not sure if this will clarify things or not.
thanks
Phil
James Mao wrote:
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