I have a WSDL that specifies an element\'s type to be xs:date.
When I use Apache CXF to generate the Java classes, it renders the variable as an javax.xml.datatype.XMLGr
By default wsdl's xsd:date
gets mapped to XMLGregorianCalendar
. If this is not what you want then if you are using CXF's wsdl to java
tool then you can provide a binding file to override this default mapping:
You can refer to http://cxf.apache.org/docs/wsdl-to-java.html section "How to map xsd:dateTime to java.util.Date?" for more details.