The WSDL interface document defines the message format for operations and messages defined by a particular portType. You can generate a monolithic WSDL document that contains all WSDL elements, or a separate WSDL interface document.
The following WSDL interface document is based on the StockQuoteService Sample.
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockQuoteService" targetNamespace="http:///"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http:///"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="getQuoteRequest">
<part name="symbol" type="xsd:string"/>
</message>
<message name="getQuoteResponse">
<part name="result" type="xsd:float"/>
</message>
<!-- This service interface file defines a single port --> <!-- type StockQuoteServiceJavaPortType --> <!-- with only one operation getQuote. -->
<portType name="StockQuoteService">
<!-- The operation makes use of two abstract messages
-->
<!-- getQuoteRequest and getQuoteResponse.
-->
<operation name="getQuote" parameterOrder="symbol">
<input message="tns:getQuoteRequest"
name="getQuoteRequest"/>
<output message="tns:getQuoteResponse"
name="getQuoteResponse"/>
</operation>
</portType>
</definitions>