Implementing WSDL

Team Fly 

Page 330

  <job_id>2 </job_id>   <job_desc>Chief Executive Officer</job_desc>   <min_lvl>200</min_lvl>   <max_lvl>250</max_lvl>   </Jobs> <Jobs diffgr:id=''Jobs3" msdata::rowOrder= "2">   <job_id>3</job_id>   <job_desc>Business Operations Manager</job_desc>   <min_lvl>175</min_lvl>   <max_lvl>225</max_lvl>   </Jobs> 

Implementing WSDL

XML attempts to self-describe—to contain both data and information describing that data. To assist with this difficult job when XML is used to send Web service messages, a new language named WSDL (Web Services Description Language) was developed. WSDL is an effort to standardize descriptions of responses, formats, and protocols used during Web service messaging. WSDL can describe these aspects of a Web service message:

image The address of the Web service

image What kind of processing should be carried out on the data

image The type of exchange (one-way, multicast, response/request, solicit/response)

image The type of data being exchanged between client and server

image The type of message used for input and output (procedure-style or document-style)

image The protocol used to send the message(s)

image Error information

WSDL descriptions are written in XML and are usually placed within an XML schema or set of schemas. The client and service employ the same schema and agree both on how the client should format its message and how the Web service should process the data it gets from the client. In this way, WSDL permits various proprietary models to easily couple, such as COM or ERP.

WSDL is yet another in the many initiatives designed to promote interoperability. It's called a "contract" between client and service, and ideally should describe all the information necessary to permit successful Web service consumption without the need for human intervention. Alas, this remains more a dream than a practical reality, like other aspects of the XML program. Nonetheless, WSDL can improve the readability (by humans) of the interaction between client and service.

Simply put: WSDL describes what kinds of messages a given server accepts, specifying the format required and the types permitted.

Here are the specific elements of WSDL:

Message Optional, can appear in various places within the document.

Team Fly 


Visual Basic  .NET Power Tools
Visual Basic .NET Power Tools
ISBN: 0782142427
EAN: 2147483647
Year: 2003
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net