webservice学习01:wsdl文档结构

 

wsdl文档结构

 

WSDL文档示例

 

<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://impl.ws.newyork.zjport.gov.cn/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns2="http://schemas.xmlsoap.org/soap/http" xmlns:ns1="http://ws.newyork.zjport.gov.cn/" name="ReceiveEncryptDeclareServiceImplService" targetNamespace="http://impl.ws.newyork.zjport.gov.cn/">

    <wsdl:types>
        <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ws.newyork.zjport.gov.cn/" elementFormDefault="unqualified" targetNamespace="http://ws.newyork.zjport.gov.cn/" version="1.0">
            <xs:element name="receive" type="tns:receive"/>
            <xs:element name="receiveResponse" type="tns:receiveResponse"/>
            <xs:complexType name="receive">
                <xs:sequence>
                    <xs:element minOccurs="0" name="content" type="xs:string"/>
                    <xs:element minOccurs="0" name="msgType" type="xs:string"/>
                    <xs:element minOccurs="0" name="dataDigest" type="xs:string"/>
                    <xs:element minOccurs="0" name="sendCode" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="receiveResponse">
                <xs:sequence>
                    <xs:element minOccurs="0" name="return" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
    </wsdl:types>

    <wsdl:message name="receiveResponse">
        <wsdl:part element="ns1:receiveResponse" name="parameters"> </wsdl:part>
    </wsdl:message>

    <wsdl:message name="receive">
        <wsdl:part element="ns1:receive" name="parameters"> </wsdl:part>
    </wsdl:message>

    <wsdl:portType name="ReceiveEncryptDeclareService">
        <wsdl:operation name="receive">
            <wsdl:input message="ns1:receive" name="receive"> </wsdl:input>
            <wsdl:output message="ns1:receiveResponse" name="receiveResponse"> </wsdl:output>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="ReceiveEncryptDeclareServiceImplServiceSoapBinding" type="ns1:ReceiveEncryptDeclareService">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="receive">
            <soap:operation soapAction="" style="document"/>
            <wsdl:input name="receive">
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="receiveResponse">
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="ReceiveEncryptDeclareServiceImplService">
        <wsdl:port binding="tns:ReceiveEncryptDeclareServiceImplServiceSoapBinding" name="ReceiveEncryptDeclareServiceImplPort">
            <soap:address location="http://122.224.230.4:18003/newyorkWS/ws/ReceiveEncryptDeclare"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

 

posted on 2019-04-22 20:40  我不吃番茄  阅读(253)  评论(0编辑  收藏  举报