This is a sample customization file.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jaxws:bindings
wsdlLocation="
http://localhost:8080/jaxrpc-customization_external_doclit/helloworld?wsdl"
xmlns:jaxws="
http://java.sun.com/xml/ns/jaxws"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
xmlns:types1="urn:test:types">
<!-- customize the jaxws generated artifacts -->
<jaxws:package name="customization.external.doclit.client"/>
<!-- customize the jaxb generated artifacts for the inlined schema,
see the XPATH expression -->
<jaxws:bindings
node="ns1:definitions/ns1:types/xs:schema[@targetNamespace='urn:test:types']"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:ns1="
http://schemas.xmlsoap.org/wsdl/">
<ns2:schemaBindings xmlns:ns2="
http://java.sun.com/xml/ns/jaxb">
<ns2:package name="customization.external.doclit.client"/>
</ns2:schemaBindings>
</jaxws:bindings>
</jaxws:bindings>
the sample should be updated to provide such bindings as many times the
schema is inlined. I will do that.
-vivek
Kohsuke Kawaguchi wrote:
> Deepak V R wrote:
>> Hi Kohsuke,
>>
>> This is not there in inline customize jaxws sample application; it
>> talks about inlining jaxws customizations. He can add
>> <jaxb:schemaBindings> in the wsdl like this.
>>
>> <wsdl:types>
>> <xsd:schema>
>> ....
>> <!--schema declarations go here -->
>> ....
>> <xsd:annotation>
>> <xsd:appinfo>
>> <jaxb:schemaBindings>
>> <jaxb:package name="mycustom.package.types"/>
>> <!-- simple package customzation for example -->
>> </jaxb:schemaBindings>
>> </xsd:appinfo>
>> </xsd:annotation>
>> </xsd:schema>
>> </wsdl:types>
>
> Yeah, I know you can use inline customizations, but he obviously wants
> to customize inline schemas in WSDL externally.
>