Created
November 25, 2013 11:15
-
-
Save sachin-handiekar/7639830 to your computer and use it in GitHub Desktop.
JAXB Binding (WSDL2Java )- XMLGregorianCalendar to java.util.Date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jaxws:bindings wsdlLocation="SampleService.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/"> | |
<jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/service/SampleService/']"> | |
<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:date" | |
parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime" | |
printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/> | |
</jxb:globalBindings> | |
</jaxws:bindings> | |
</jaxws:bindings> |
Author
sachin-handiekar
commented
Nov 25, 2013
- Maven Dependency
- WSDL2Java plugin
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/SampleService.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/SampleService.wsdl</wsdlLocation>
<bindingFiles>
<bindingFile>
${basedir}/src/main/resources/wsdl/dateBinding.xml
</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
<version>2.7.0</version>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment