By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,926 Members | 1,828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,926 IT Pros & Developers. It's quick & easy.

wsdl parsing

P: 5
I am working on some code which parses wsdl . I have a complex wsdl which is failing to parse . I have to modify this wsdl for parsing .

wanted to know the complex wsdl i am using is as per standards.


first change done
in schema section i have something defined like this

<xsd:complexType name="CallTermType" abstract="true"/> which is used in later sections as
<xsd:complexType name="EndOfPage">
<xsd:complexContent>
<xsd:extension base="CallTermType">
<xsd:attribute name="continueFrom" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>


But how ever with my current code i have make some changes in wsdl , add some attribute

<xsd:complexType name="CallTermType" abstract="true">
<xsd:complexContent>
<xsd:attribute name="CIds" type="xsd:string"/>
</xsd:complexContent>
</xsd:complexType>

Is the line <xsd:complexType name="CallTermType" abstract="true"/> adheres to standard if so I need to make some changes in my code as i need to parse wsdl adhering to standards <xsd:complexType name="CallTermType" abstract="true"/>




second change
in wsdl <definitions> i have something defined as below
xmlns:mtyp="http://abc.com/ab/xyz/2005/02/ws/schema"

Have defined something like this in message
<message name="GetMyRequest">
<part name="request" element="mtyp:GetMyRequest"/>
</message>

In schema for GetMyRequest is something complex defined this way

<xsd:element name="GetMyRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MyRequest" type="MyRequestType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


How ever I am able to parse wsdl provided i qualify the complex type with namespace i.e as below

<xsd:element name="GetMyRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MyRequest" type="mtyp:MyRequestType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


would like to know if data type is complex do we need to specify in schema as "mtyp:MyRequestType" . or can directly need to be given as ="MyRequestType". which is the standard way ? becuase the code i am using should parse all the standards wsdl .
so i want to what is standard convention so that i can decide i should change my code or not .
Sep 18 '07 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364

Post your reply

Sign in to post your reply or Sign up for a free account.