Monday, 19 December 2011
WSDL Binding customization example
<jaxws:bindings
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxws http://java.sun.com/xml/ns/jaxws/wsdl_customizationschema_2_0.xsd
http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
wsdlLocation="http://www.webservicex.net/stockquote.asmx?WSDL">
<!-- JAXWS -->
<jaxws:package name="com.company.jaxwstest.client"/>
<!-- JAXB -->
<!-- <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema"> -->
<jaxws:bindings node="//xsd:schema">
<jxb:schemaBindings>
<jxb:package name="com.company.jaxwstest.client.jaxb"/>
</jxb:schemaBindings>
</jaxws:bindings>
</jaxws:bindings>
Labels:
Web Services