A quick overview of WSDL (Web Services Description Language)
Chapters
The portType element
WSDL - The <portType> Element
The <portType> element defines a web service, operations can be performed and messages are involved. <portType> defines connection point to a web service. It can be compared to a function library (a class or a module) in a traditional programming language. Each operation can be compared to a function in a traditional programming language.
Operation Types
The request-response type is most common operation type, but WSDL defines four types:
Type |
Definition |
One-way |
The operation receive a message but will not return a response |
Request-response |
The operation receive a request and will return a response |
Solicit-response |
The operation send a request and will wait for a response |
Notification |
The operation send a message but will not wait for a response |
One-way |
The operation receive a message but will not return a response |
One-Way Operation
<message name="TermValues"> <part name="term" type="xs:string"/> <part name="value" type="xs:string"/> </message> <portType name="glossaryTerm"> <operation name="setTerm"> <input name="new" message="newValues"/> </operation> </portType >
In example above portType "glossaryTerm" defines a one-way operation called "setTerm".The "setTerm" operation allows input of new glossary term messages using a "newValues" message with input parameters "term" and "value".
Request-Response Operation
<message name="getRequest"> <part name="term" type="xs:string"/> </message> <message name="getResponse"> <part name="value" type="xs:string"/> </message> <portType name="glossaryTerm"> <operation name="getTerm"> <input message="getRequest"/> <output message="getResponse"/> </operation> </portType>
In example above portType "glossaryTerm" defines a request-response operation called "getTerm".The "getTerm" operation requires an input message called "getRequest" with a parameter called "term" and will return an output message called "getResponse" with a parameter called "value".
Description
In this tutorial, you will get a quick overview on WSDL
- What is WSDL?
- WSDL Documents
- Port Type
- Binding
Learning Objectives
Quickly get to know WSDL
Author: Subject Coach
Added on: 20th Aug 2015
You must be logged in as Student to ask a Question.
None just yet!