WSDL バインディング文書とは、 特定の portType で定義される処理とメッセージを対象にプロトコル詳細を定義するものです。 WSDL バインディング文書は、UDDI レジストリーに公開される tModel またはサービス・インターフェースと同じ働きをします。 すべての WSDL エレメントを含む一体構造の WSDL 文書、または個別の WSDL バインディング文書を生成できます。
WSDL バインディング文書は、特定のポート・タイプの具象プロトコル、 およびデータ・フォーマットの仕様です。バインディング情報には、各操作ごとのプロトコル名、 起動スタイル、サービス ID、およびエンコード方式が含まれます。
次の WSDL バインディング文書は、StockQuoteService サンプルをベースにしたものです。
<?xml version="1.0" encoding="UTF-8"?> <definitions name="StockQuoteServiceBinding" targetNamespace="http:///" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http:///"> <import location="StockQuoteService.wsdl" namespace="http:///"/>
<!-- The mapping to the actual transport protocol names is --> <!-- performed in the binding, the next part of the service --> <!-- interface file. StockQuoteServiceSOAPBinding is the SOAP --> <!-- binding for the port type. The binding describes --> <!-- which run-time protocol is supported by the service --> <!-- provider and contains protocol configuration information. -->
<wsdl:binding name="StockQuoteServiceSoapBinding" type="intf:StockQuoteService"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getQuote"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getQuoteRequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="getQuoteResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding>