468,456 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

wsdl parsing

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
1 3183
Dököll
2,364 Expert 2GB
Have a look here: http://www.w3schools.com/wsdl/wsdl_syntax.asp
Sep 19 '07 #2

Post your reply

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

Similar topics

2 posts views Thread by Alessandro Crugnola | last post: by
reply views Thread by Nick Caldwell | last post: by
reply views Thread by nole369 | last post: by
reply views Thread by Geoffrey Summerhayes | last post: by
3 posts views Thread by Thomas Guettler | last post: by
reply views Thread by Sebastian Schulze | last post: by
reply views Thread by gcwg | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.