users@jax-ws.java.net

Re: Customizing inline schema

From: Rama Pulavarthi <Rama.Pulavarthi_at_Sun.COM>
Date: Sun, 15 Oct 2006 23:58:31 -0700

The node should be on jaxws:bindings .
Try this,

<bindings
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   wsdlLocation="http://192.168.0.2:8080/api/TestService?wsdl"
   xmlns="http://java.sun.com/xml/ns/jaxws">
    <bindings node="wsdl:definitions/wsdl:types/xs:schema">
        <ns2:schemaBindings xmlns:ns2="http://java.sun.com/xml/ns/jaxb" >
               <ns2:package name="com.mycompany"/>
           </ns2:schemaBindings>
    </bindings>
   <bindings node="wsdl:definitions">
       <package name="com.mycompany"/>
   </bindings>
</bindings>


thanks,
Rama Pulavarthi

Dima Gutzeit wrote:
> Hi,
>
> I am using the following customization:
>
> <bindings
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> wsdlLocation="http://192.168.0.2:8080/api/TestService?wsdl"
> xmlns="http://java.sun.com/xml/ns/jaxws">
> <ns2:schemaBindings xmlns:ns2="http://java.sun.com/xml/ns/jaxb"
> node="wsdl:definitions/wsdl:types/xs:schema">
> <ns2:package name="com.mycompany"/>
> </ns2:schemaBindings>
> <bindings node="wsdl:definitions">
> <package name="com.mycompany"/>
> </bindings>
> </bindings>
>
> This does not work. If I leave only the <bindings
> node="wsdl:definitions"> then the wsdl definition are being
> customized, but not the schema :-(
>
> The wsdlLocation directive points to wsdl that does not contain
> schema, but imports another wsdl file with the schema inline.
>
> Am I missing something ?
>
> Thanks in advance.
>
> Regards,
> Dima Gutzeit.
>
> ----- Original Message ----- From: "Rama Pulavarthi"
> <Rama.Pulavarthi_at_Sun.COM>
> To: <users_at_jax-ws.dev.java.net>
> Sent: Sunday, October 15, 2006 9:19 PM
> Subject: Re: Customizing inline schema
>
>
>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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
>