Web service description

A web service description is a document by which the service provider communicates the specifications for starting the web service to the service requester. Web service descriptions are expressed in the XML application known as Web Service Description Language (WSDL).

The service description describes the web service in such a way as to minimize the amount of shared knowledge and customized programming that is needed to ensure communication between the service provider and the service requester. For example, neither the requester nor the provider needs to be aware of the platform on which the other runs, nor of the programming language in which the other is written.

A service description can conform to either the WSDL 1.1 or WSDL 2.0 specification. Each has differences in both the terminology and major elements that can be included in the service description. The following information uses WSDL 1.1 terminology and elements to explain the purpose of the service description.

The structure of WSDL allows a service description to be partitioned into two definitions: See Figure 1.
A WSDL 1.1 document uses the following major elements in the definition of network services:
<types>
A container for data type definitions using some type system (such as XML Schema). Defines the data types used within the message. The <types> element is not required when all messages consist of simple data types.
<message>
Specifies which XML data types are used to define the input and output parameters of an operation.
<portType>
Defines the set of operations supported by one or more endpoints. Within a <portType> element, each operation is described by an <operation> element.
<operation>
Specifies which XML messages can appear in the input and output data flows. An operation is comparable with a method signature in a programming language.
<binding>
Describes the protocol, data format, security, and other attributes for a particular <portType> element.
<port>
Specifies the network address of an endpoint and associates it with a <binding> element.
<service>
Defines the web service as a collection of related endpoints. A <service> element contains one or more <port> elements.
Figure 1. Structure of a web service descriptionThe structure of a web service description, showing how it is partitioned into a service implementation description and a service interface definition.
Because you can partition the web service description, you can divide responsibility for creating a complete service description. As an illustration, consider a service that is defined by a standards body for use across an industry and is implemented by individual companies in that industry:


dfhws_wsdl.html | Timestamp icon Last updated: Thursday, 27 June 2019