The service interface in this WSDL document contains a port type
(StockQuote), an operation (getQuote), an input message (getQuoteRequest),
and an output message (getQuoteResponse).
To create a WSDL file named StockQuote.wsdl
from this WSDL document:
- Create an empty text file named StockQuote.wsdl.
- Copy and paste the text in Figure 1 into
StockQuote.wsdl.
- Save and close StockQuote.wsdl.
Figure 1. Text for StockQuote.wsdl<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockQuote"
targetNamespace="http://example.com.wsdl/stockquote/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://example.com.wsdl/stockquote/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="getQuoteRequest">
<part name="ticker" type="xsd:string"/>
</message>
<message name="getQuoteResponse">
<part name="result" type="xsd:float"/>
</message>
<portType name="StockQuote">
<operation name="getQuote" parameterOrder="ticker">
<input message="tns:getQuoteRequest" name="getQuoteRequest"/>
<output message="tns:getQuoteResponse" name="getQuoteResponse"/>
</operation>
</portType>
</definitions>