Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Parsing a WSDL with embedded xsd
Parsing a WSDL with embedded xsd [message #579920] Tue, 21 October 2003 11:37
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 90
Registered: July 2009
Member
I have a WSDL file that contains embedded XSD. The approach that I've been
taking is to take the xsd part and parse it as a seperate blob using
Eclipse XSD. This approach works for simple cases, but with the WSDL
below, where the targetNamespace of the file has a prefix called typens,
there is a complication parsing the xsd since it cannot resolve the
typens: prefix for the complex types. In fact I also have a problem with
the wsdl:arrayType but I'm not sure if that can be overcome.

Is there a way that I can set the targetNamespace of the document such
that I can overcome this problem.

<wsdl:definitions xmlns:typens="http://soap.amazon.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://soap.amazon.com" name="AmazonSearch">
<wsdl:types>
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://soap.amazon.com">
<xsd:complexType name="ProductLineArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="typens:ProductLine[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProductLine">
<xsd:all>
<xsd:element name="Mode" type="xsd:string" minOccurs="0" />
<xsd:element name="ProductInfo" type="typens:ProductInfo" minOccurs="0"
/>
</xsd:all>
........................
Previous Topic:Loading one Resource using different URLs
Next Topic:XSDResourceImpl.save help
Goto Forum:
  


Current Time: Fri Apr 26 15:27:12 GMT 2024

Powered by FUDForum. Page generated in 0.03770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top