WSDL インターフェース文書は、 特定の portType で定義される操作およびメッセージの、 メッセージ・フォーマットを定義します。 すべての WSDL エレメントを含む一体構造の WSDL 文書、または個別の WSDL インターフェース文書を生成できます。
次の WSDL インターフェース文書は、StockQuoteService サンプルをベースにしたものです。
<?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>