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

4. Binding

A binding defines message format and protocol details for operations and messages defined by a particular portType. Let us take a look at the first binding element from our WSDL to understand what it means:

- <binding name="FlightServicesSoap" type="s0:FlightServiceSoap">

    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />

  - <operation name="GetFlightStatus">

     <soap:operation soapAction="http"//tempurl.org/GetFlightStatus style="document" />

   - <input>

       <soap:body use="literal" />

     </input>

   - <output>

       <soap:body use="literal" />

     </output>

    </operation>

  </binding>

Fig 8: SOAP binding definition from SAS Web Service WSDL document. 

There are some important points that we need to observe in the binding element:

? ? The binding element refers to the portType (FlightServiceSoap) using “type” attribute.

? ? The binding element is the first element to specify a “protocol” (SOAP in Fig 8) in the WSDL document so far! 

An operation element within a binding element specifies binding information for the operation specified in that particular binding’s portType. Since operation names are not required to be unique, the name attribute in the operation element might not be enough to uniquely identify an operation. In that case, providing the name attributes of the corresponding input and output elements should identify the correct operation

(Method Overloading!).

So a binding = protocol + portType


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 11:30:14 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search