WSDL 語法

2018-03-05 15:54 更新

本節(jié)提供了 一份完整的 WSDL 語法。

描述于 W3C 工作草案的完整 WSDL 1.2 語法已列在下面:


<wsdl:definitions name="nmtoken"? targetNamespace="uri">

    <import namespace="uri" location="uri"/> 

    <wsdl:documentation .... /> ?

    <wsdl:types> ?
        <wsdl:documentation .... /> ?
        <xsd:schema .... /> 
    </wsdl:types>

    <wsdl:message name="ncname"> 
        <wsdl:documentation .... /> ?
        <part name="ncname" element="qname"? type="qname"?/> 
    </wsdl:message>

    <wsdl:portType name="ncname"> 
        <wsdl:documentation .... /> ?
        <wsdl:operation name="ncname"> 
            <wsdl:documentation .... /> ?
            <wsdl:input message="qname"> ?
                <wsdl:documentation .... /> ?
            </wsdl:input>
            <wsdl:output message="qname"> ?
                <wsdl:documentation .... /> ?
            </wsdl:output>
            <wsdl:fault name="ncname" message="qname"> 
                <wsdl:documentation .... /> ?
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:serviceType name="ncname"> 
        <wsdl:portType name="qname"/> +
    </wsdl:serviceType>

    <wsdl:binding name="ncname" type="qname"> 
        <wsdl:documentation .... /> ?
        <-- binding details --> 
        <wsdl:operation name="ncname"> 
            <wsdl:documentation .... /> ?
            <-- binding details --> 
            <wsdl:input> ?
                <wsdl:documentation .... /> ?
                <-- binding details -->
            </wsdl:input>
            <wsdl:output> ?
                <wsdl:documentation .... /> ?
                <-- binding details --> 
            </wsdl:output>
            <wsdl:fault name="ncname"> 
                <wsdl:documentation .... /> ?
                <-- binding details --> 
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="ncname" serviceType="qname"> 
        <wsdl:documentation .... /> ?
        <wsdl:port name="ncname" binding="qname"> *
            <wsdl:documentation .... /> ?
            <-- address details -->
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)