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

5. Service

A service element is a collection of related ports and a port defines an individual network endpoint by specifying a single address for a binding.

The first “port” element’s definition in the service element is shown below in Fig 9. 

- <port name="FlightServiceSoap" binding="s0:FlightServiceSoap">

    <soap:address location="http://webservices.scandinavian.net/flightstatus/flightservice.asmx" />

  </port>

Fig 9: port element definition. 

As we can see, the port contains the URL (the network endpoint) of the Web Service and also has a reference to the binding element as an attribute.

So a port = binding + network address 

With this background information about the “port”, let us take a look at the “service” element:

Fig 10: service element definition. 

As shown in the Fig 10, a service is a collection of related but mutually exclusive ports. Which means that all the three ports belong to the same service but none of them really communicate with each other. Also all these related ports provide semantically equivalent behavior by allowing Web Service consumers to choose a particular port to communicate with the Web Service based on protocol implementation or some other criteria. 

With this background, now we understand the Web Service contract spelled in WSDL. To summarize our understanding, we can define the SAS Flight Status Web Service contract in plain English as below: 

SAS Flight Status Web Service

? ? Accepts two input parameters (of type “int”)

? ? Returns one parameter (of type “string”)

? ? Address of the Web Service is: http://webservices.scandinavian.net/flightstatus/flightservice.asmx

? ? Allows us to choose the protocol from SOAP, HTTP-GET and HTTP-POST

With this information, we are ready to move on to “consume” this Web Service!


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-03-29 9:46:13 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search