Example of a WSDL Document

Previous Next

Here is an example of a WSDL document:


This WSDL document contains six main elements:

The definitions element must be the root element of a WSDL document. It defines the name of the web service and declares multiple namespaces used in the document.
The types element provides data type definitions that are used to describe the messages exchanged.
The message element describes a one-way message. This can be a request or response message. It defines the name of the message and contains zero or more message part elements. These elements represent the parameters of the message.
The portType element combines multiple message elements into a complete operation. Each operation refers to an input message and output message.
The binding element describes how the service is implemented on the wire. It specifies concrete protocol and data format specifications for the operations and messages defined by a particular portType.
The service element describes the address for invoking the specified service. Since USoft web services are soap services, this URL starts with soap:address.