WSIL part 01


Introduction to WSDL


WSDL stands for Web Services Description Language. WSDL is a language for describing web services and how to access them.WSDL is written in XML.

The WSDL Document's main elements


Element Description
<types> A container for data type definitions used by the web service
<message> A typed definition of the data being communicated
<portType> A set of operations supported by one or more endpoints
<binding> A protocol and data format specification for a particular port type

structure of a WSDL document


<definitions>
  <types>
   definition of types........
  </types>

  <message>
   definition of a message....
  </message>

  <portType>
   <operation>
    definition of a operation.......  
   </operation>
  </portType>

  <binding>
   definition of a binding....
  </binding>

  <service>
   definition of a service....
  </service>
 </definitions>
 
The <portType> element is the most important WSDL element.

Operation Types

The operation can send a message but will not wait for a response

Type Definition
One-way The operation can receive a message but will not return a response
Request-response The operation can receive a request and will return a response
Solicit-response The operation can send a request and will wait for a response
Notification The operation can send a message but will not wait for a response

One-Way Operation


<message name="newTermValues">
   <part name="term" type="xs:string"/>
   <part name="value" type="xs:string"/>
 </message>

 <portType name="glossaryTerms">
   <operation name="setTerm">
  <input name="newTerm" message="newTermValues"/>
   </operation>
 </portType >
 


Request-Response Operation


This operation like this..

<message name="getTermRequest">
   <part name="term" type="xs:string"/>
</message>

 <message name="getTermResponse">
   <part name="value" type="xs:string"/>
 </message>

 <portType name="glossaryTerms">
   <operation name="getTerm">
  <input message="getTermRequest"/>
  <output message="getTermResponse"/>
   </operation>
 </portType>

Comments

Popular posts from this blog

How to Install Asterisk 11 on Ubuntu 14.04 LTS

VoiceXML Introduction

Server Tomcat v6.0 Server at localhost failed to start