[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Serializing namespaces on the xsd schema level

Yep, just add this line after setting the prefix for the WSDL namespace:

definition.addNamespace(SCHEMA_FOR_SCHEMA_PREFIX, 
XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);


"Ravikanth " <ravikanth.somayaji@xxxxxxxxx> wrote in message 
news:f993cef7c14c50671e824f859d18805e$1@xxxxxxxxxxxxxxxxxx
> Hi Valentin,
>
> Thanks for your reply.
>
> I tried that and that works fine, but is there any way to serialize 
> [xmlns:xsd="http://www.w3.org/2001/XMLSchema";] on both the root element 
> and the xsd:schema element?
>
> Like, I said before, it is probably not the best of XML constructed, but 
> it seems to be needed for some transformation I'm writing.
>
> -Ravi
>
> Valentin wrote:
>
>> Ravikanth, try this working example:
>
>> The code above produces a WSDL document that looks like this:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
>> targetNamespace="http://www.example.org";>
>>   <wsdl:types>
>>     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
>>   </wsdl:types>
>> </wsdl:definitions>
>
>
>