User Guide

Table Of Contents
890 Chapter 36: Using Web Services
<soap:body use="encoded" namespace="urn:xmethods-Temperature"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="TemperatureService">
<documentation>Returns current temperature in a given U.S. zipcode </
documentation>
<port name="TemperaturePort" binding="tns:TemperatureBinding">
<soap:address location="http://services.xmethods.net:80/soap/servlet/
rpcrouter"/>
</port>
</service>
</definitions>
The following are the major components of the WSDL file:
For additional descriptions of the contents of this WSDL file, see “Consuming web services
on page 891.
Component Definition
definitions
The root element of the WSDL file. This area contains namespace definitions that
you use to avoid naming conflicts between multiple web services.
types
(Not shown) Defines data types used by the service’s messages.
message
Defines the data transferred by a web service operation, typically the name and data
type of input parameters and return values.
port type
Defines one or more operations provided by the web service.
operation
Defines an operation that can be remotely invoked.
input
Specifies an input parameter to the operation using a previously defined message.
output
Specifies the return values from the operation using a previously defined message.
fault
(not shown) Optionally specifies an error message returned from the operation.
binding
Specifies the protocol used to access a web service including SOAP, HTTP GET
and POST, and MIME.
service
Defines a group of related operations.
port
Defines an operation and its associated inputs and outputs.