0% found this document useful (0 votes)
21 views

4XML

WSDL (Web Services Description Language) is an XML-based language used to describe web services and is a W3C recommendation. It consists of key elements such as <types>, <message>, <portType>, and <binding>, which define data types, operations, and protocols for web services. Clients utilize WSDL files to format SOAP requests for accessing web services.

Uploaded by

SAROJ KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

4XML

WSDL (Web Services Description Language) is an XML-based language used to describe web services and is a W3C recommendation. It consists of key elements such as <types>, <message>, <portType>, and <binding>, which define data types, operations, and protocols for web services. Clients utilize WSDL files to format SOAP requests for accessing web services.

Uploaded by

SAROJ KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

XML

UNIT -4

WSDL

4.1 WSDL : (Web Services Description Language)

 Used to describe web services and written in XML.


 W3C recommendation.

WSDL Documents

 Document describes web service.

 Specifies location and method of service using major elements.

WSDL primarily consists of the following elements:

Element Description

<types> Defines XML Schema data types used by web service

<message Defines the data elements for each operation


>

<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.

The main structure of a WSDL document looks like this:

<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:

This is a simplified fraction of a WSDL document:

<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.

You might also like