I'm attempting to upgrade from the CXF incubator project to CXF 2.1. I've
managed to get my server up and running with the web services exposed
successfully, but when I attempt to generate the client files using
WSDLToJava I received the following exception:
[java] WSDLToJava Error: Thrown by JAXB : JAXB version attribute must
be "1.0"
I am using binding files so I can override the Date and Calendar objects,
but these are basically right out of the documentation.
<jaxws:bindings wsdlLocation=
"http://localhost:8080/QuoteService/services/CosmosBroker?wsdl"
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/" jxb:version="1.0">
<jaxws:bindings node=
"wsdl:definitions/wsdl:types/xs:[EMAIL PROTECTED]'http://cosmos.it.sybase.com']"
>
<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:serializable/>
<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>
Any idea as to how I can get around this issue?
Thanks...