parsing XSD from WSDL; then saving as stand-alone [message #47860] |
Thu, 17 June 2004 08:43  |
Eclipse User |
|
|
|
Originally posted by: hoe.zurich.ibm.com
So I'm loading XSD schemas that are embedded inside WSDL documents with
the XSDWSDLResourceImpl class that was suggested here some while ago.
What I'd like to do next is save those schemas as self-contained
documents. How can I make sure that all namespace declarations are
included (even those that may have appeared outside the schema
definition in the original document; e.g. xmlns:wsdl next to
wsdl:definitions). Do I have to manipulate/update the DOM representation
myself (based on getQNamePrefixToNamespaceMap where all required entries
show up correctly), or is there a better way to accomplish the required
closure?
Thanks,
Christian
|
|
|
|
Re: parsing XSD from WSDL; then saving as stand-alone [message #47919 is a reply to message #47890] |
Thu, 17 June 2004 09:34  |
Eclipse User |
|
|
|
Originally posted by: hoe.zurich.ibm.com
Thx, Ed. Nice side effect, this one ;-)
Ed Merks wrote:
> I think that if you did
>
> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())
>
> that any xmlns declaration not directly in the schema element will be
> copied there.
|
|
|
Re: parsing XSD from WSDL; then saving as stand-alone [message #589294 is a reply to message #47860] |
Thu, 17 June 2004 09:13  |
Eclipse User |
|
|
|
--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Christian,
I think that if you did
xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())
that any xmlns declaration not directly in the schema element will be copied
there.
Christian Hoertnagl wrote:
> So I'm loading XSD schemas that are embedded inside WSDL documents with
> the XSDWSDLResourceImpl class that was suggested here some while ago.
> What I'd like to do next is save those schemas as self-contained
> documents. How can I make sure that all namespace declarations are
> included (even those that may have appeared outside the schema
> definition in the original document; e.g. xmlns:wsdl next to
> wsdl:definitions). Do I have to manipulate/update the DOM representation
> myself (based on getQNamePrefixToNamespaceMap where all required entries
> show up correctly), or is there a better way to accomplish the required
> closure?
>
> Thanks,
> Christian
--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Christian,
<p>I think that if you did
<blockquote> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap()) </blockquote>
that any xmlns declaration not directly in the schema element will be copied
there.
<br>
<p>Christian Hoertnagl wrote:
<blockquote TYPE=CITE>So I'm loading XSD schemas that are embedded inside
WSDL documents with
<br>the XSDWSDLResourceImpl class that was suggested here some while ago.
<br>What I'd like to do next is save those schemas as self-contained
<br>documents. How can I make sure that all namespace declarations are
<br>included (even those that may have appeared outside the schema
<br>definition in the original document; e.g. xmlns:wsdl next to
<br>wsdl:definitions). Do I have to manipulate/update the DOM representation
<br>myself (based on getQNamePrefixToNamespaceMap where all required entries
<br>show up correctly), or is there a better way to accomplish the required
<br>closure?
<p>Thanks,
<br>Christian</blockquote>
</html>
--------------1B1739C622FEADC8B5FBDF26--
|
|
|
Re: parsing XSD from WSDL; then saving as stand-alone [message #589312 is a reply to message #47890] |
Thu, 17 June 2004 09:34  |
Eclipse User |
|
|
|
Originally posted by: hoe.zurich.ibm.com
Thx, Ed. Nice side effect, this one ;-)
Ed Merks wrote:
> I think that if you did
>
> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())
>
> that any xmlns declaration not directly in the schema element will be
> copied there.
|
|
|
Powered by
FUDForum. Page generated in 0.03797 seconds