WSDL サービス

WSDL サービス文書は、関連のあるポート同士をグループ化するものです。WSDL サービス文書は、 UDDI レジストリーに向けて公開するビジネス・サービスと同じ働きをします。 すべての WSDL エレメントを含む一体構造の WSDL 文書、または個別の WSDL サービス文書を生成できます。

WSDL サービス文書には、以下のエレメントが含まれます。
サービス
関連するポートのコレクション。
ポート
単一のエンドポイント。バインディングおよびネットワーク・アドレスの集合体として定義されます。

次の WSDL サービス文書は、StockQuoteService サンプルをベースにしたものです。

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockQuoteServiceService"
targetNamespace="http:///"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http:///">
    <import location="StockQuoteServiceBinding.wsdl"
namespace="http:///"/>
    <service name="StockQuoteServiceService">
    <!--   The port element StockQuoteServicePort contains the
                   -->
    <!--   SOAP address
http://localhost:8080/WebProject/servlet/rpcrouter.         -->
    <!--   This address is the URL under which the RPC router
servlet of the        -->
    <!--   service provider's SOAP server can be reached.  The
port                 -->
    <!--   references the binding in the interface file.  The
qualified name        -->
    <!--   binding:StockQuoteServiceBinding is used in this case
since the          -->
    <!--   interface file uses a different namespace than the
implementation file.  -->
        <port binding="tns:StockQuoteServiceBinding"
name="StockQuoteServicePort">
            <soap:address
location="http://localhost:9080/WebProject/servlet/rpcrouter"/>
        </port>
    </service>
</definitions>
ご利用条件 | フィードバック
(C) Copyright IBM Corporation 1999, 2004. All Rights Reserved. (C) Copyright IBM Japan 2005