4XML
4XML
UNIT -4
WSDL
WSDL Documents
Element Description
<port Describes the operations that can be performed and the messages
type> involved.
<binding>
Defines the protocol and data format for each port type
When a client wants to make use of a Web service
It first loads the WSDL file and uses the information contained in it to format a SOAP request.
The WSDL and WSML are both generated by the wsdlgen utility.
<definitions>
<types>
data type definitions........
</types>
<message>
definition of the data being communicated....
</message>
<portType>
set of operations......
</portType>
<binding>
protocol and data format specification....
</binding>
</definitions>
Example:
<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>
Here the <portType> element defines "glossaryTerms" as the name of a port, and "getTerm" as the
name of an operation.
The "getTerm" operation has an input message called "getTermRequest" and an output
message called "getTermResponse".
The <message> elements define the parts of each message and the associated data types.