wsdl 分析2

来源:互联网 发布:小孩画画软件哪个好 编辑:程序博客网 时间:2024/05/17 06:01

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.test.com/InlandFlightSearchAllSrv/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InlandFlightSearchAllSrv"
    targetNamespace="http://www.test.com/InlandFlightSearchAllSrv/">
    <wsdl:types>
        <xsd:schema targetNamespace="http://www.test.com/InlandFlightSearchAllSrv/">
            <xsd:element name="InlandFlightSearchSrvRequest">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="userName" type="xsd:string" />
                        <xsd:element name="password" type="xsd:string"></xsd:element>
                        <xsd:element name="flightSearchParam" type="tns:FlightSearchParam"></xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="InlandFlightSearchSrvResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="errorFlag" type="xsd:string" />
                        <xsd:element name="errorMessage" type="xsd:string"></xsd:element>
                        <xsd:element name="flightInfoCollection" type="tns:FlightInfo" minOccurs="0"
                            maxOccurs="unbounded">
                        </xsd:element>
                        <xsd:element name="specialFlightInfoCollection" type="tns:FlightInfo" minOccurs="0"
                            maxOccurs="unbounded"></xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>

            <xsd:complexType name="FlightSearchParam">
                <xsd:sequence>
                    <xsd:element name="landingPort" type="xsd:string"></xsd:element>
                    <xsd:element name="takeoffPort" type="xsd:string"></xsd:element>
                    <xsd:element name="takeoffDate" type="xsd:string"></xsd:element>
                    <xsd:element name="extAttribute" type="tns:MapString" minOccurs="0" maxOccurs="unbounded"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>

            <xsd:complexType name="MapString">
                <xsd:sequence>
                    <xsd:element name="key" type="xsd:string"></xsd:element>
                    <xsd:element name="value" type="xsd:string"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>

            <xsd:complexType name="FlightInfo">
                <xsd:sequence>
                    <xsd:element name="isETicket" type="xsd:string"></xsd:element>
                    <xsd:element name="airlineCorp" type="xsd:string"></xsd:element>
                    <xsd:element name="flightNum" type="xsd:string"></xsd:element>
                    <xsd:element name="isStop" type="xsd:string"></xsd:element>
                    <xsd:element name="landingPort" type="xsd:string"></xsd:element>
                    <xsd:element name="landingTime" type="xsd:string"></xsd:element>
                    <xsd:element name="planeType" type="xsd:string"></xsd:element>
                    <xsd:element name="takeoffPort" type="xsd:string"></xsd:element>
                    <xsd:element name="takeoffTime" type="xsd:string"></xsd:element>
                    <xsd:element name="vendorId" type="xsd:string"></xsd:element>
                    <xsd:element name="cabinInfoCollection" type="tns:FlightCabinInfo" minOccurs="0"
                        maxOccurs="unbounded">
                    </xsd:element>
                    <xsd:element name="extAttribute" type="tns:MapString" minOccurs="0" maxOccurs="unbounded"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>

            <xsd:complexType name="SpecialFlightInfo"></xsd:complexType>

            <xsd:complexType name="FlightCabinInfo">
                <xsd:sequence>
                    <xsd:element name="cabin" type="xsd:string"></xsd:element>
                    <xsd:element name="seating" type="xsd:string"></xsd:element>
                    <xsd:element name="discount" type="xsd:string"></xsd:element>
                    <xsd:element name="ticketPrice" type="xsd:string"></xsd:element>
                    <xsd:element name="backPoint" type="xsd:string"></xsd:element>
                    <xsd:element name="netPrice" type="xsd:string"></xsd:element>
                    <xsd:element name="taxes" type="xsd:string"></xsd:element>
                    <xsd:element name="backPolicy" type="xsd:string"></xsd:element>
                    <xsd:element name="changPolicy" type="xsd:string"></xsd:element>
                    <xsd:element name="vendorId" type="xsd:string"></xsd:element>
                    <xsd:element name="policyId" type="xsd:string"></xsd:element>
                    <xsd:element name="extAttribute" type="tns:MapString" minOccurs="0" maxOccurs="unbounded"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="processRequest">
        <wsdl:part element="tns:InlandFlightSearchSrvRequest" name="req" />
    </wsdl:message>
    <wsdl:message name="processResponse">
        <wsdl:part element="tns:InlandFlightSearchSrvResponse" name="resp" />
    </wsdl:message>
    <wsdl:portType name="InlandFlightSearchAllSrv">
        <wsdl:operation name="process">
            <wsdl:input message="tns:processRequest" />
            <wsdl:output message="tns:processResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="InlandFlightSearchAllSrvSOAP" type="tns:InlandFlightSearchAllSrv">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="process">
            <soap:operation soapAction="http://www.test.com/InlandFlightSearchAllSrv/process" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="InlandFlightSearchAllSrv">
        <wsdl:port binding="tns:InlandFlightSearchAllSrvSOAP" name="InlandFlightSearchAllSrvSOAP">
            <soap:address location="http://www.test.com/services/InlandFlightSearchAllSrv/v1.0/" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

原创粉丝点击