Inside the WSDL & Web Services Proxies
page 5 of 16
by Anonymous Contributor
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 65197/ 113

1. Types

The types element encloses data type definitions that are relevant for the exchanged messages between the proxy and the Web Service. For maximum interoperability and platform neutrality, WSDL prefers the use of XSD as the canonical type system. The “types” element from SAS Web Service WSDL is shown in Fig 3. As we can see, there are three elements: GetFlightStatus, GetFlightStatusResponse and string.

<types>

<s:schema attributeFormDefault="qualified"

elementFormDefault="qualified"

targetNamespace="http://tempuri.org/">

<s:element name="GetFlightStatus">

<s:complexType>

<s:sequence>

<s:element minOccurs="1" maxOccurs="1"

name="nFlightNo" type="s:int" />

<s:element minOccurs="1" maxOccurs="1"

name="nDayOffset" type="s:int" />

</s:sequence>

</s:complexType>

</s:element>

<s:element name="GetFlightStatusResponse">

<s:complexType>

<s:sequence>

<s:element minOccurs="1" maxOccurs="1"

name="GetFlightStatusResult"

nillable="true" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

<s:element name="string" nillable="true" type="s:string" />

</s:schema>

</types>

Fig 3: types element from SAS Web Service WSDL

As we can see, the simple type definitions (the “type” attribute in “element” node) are referring to namespace “s” which is nothing but: http://www.w3.org/2001/XMLSchema. The structure of “GetFlightStatus” is defined as a sequence of two integers: “nFlightNo” and “nDayOffset”. The element “GetFlightStatusResponse” is defined as a “string” by name “GetFlightStatusResult”. The third and last element “string” is defined as a “string” type.


View Entire Article

User Comments

Title: Webservice   
Name: Anbazhagan. P
Date: 2009-03-14 12:47:38 PM
Comment:
Very useful website
Title: rakesh   
Name: Name rakesh
Date: 2007-09-13 3:38:58 AM
Comment:
Ok Run
Title: Getting Error   
Name: Dilip Kumar Prusty
Date: 2006-09-18 5:19:48 AM
Comment:
I am getting
The request failed with HTTP status 404: Not Found.
this error .

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 2:31:38 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search