users@jax-ws.java.net

Re: Customizing inline schema

From: Rama Pulavarthi <Rama.Pulavarthi_at_Sun.COM>
Date: Sun, 15 Oct 2006 12:19:55 -0700

You can simply put this kind of customization in jax-ws customization file.
As you see, you need to give a correct XPath expression to identify the
node you want to customize, in this case schema element in the wsdl.

<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.server"/>
       </ns2:schemaBindings>
   </jaxws:bindings>

thanks,
Rama Pulavarthi

Dima Gutzeit wrote:
> Hi,
>
> How can I customize the generated objects of some inline schema of a wsdl
> file ?
> I am using jax-ws ri to build client side of web service but the
> schema is
> inline and not imported so using
>
> <schemaBinding ..... >
>
> does not help.
>
> Thanks in advance.
>
> Regards,
> Dima Gutzeit.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>