 |
返回正文。
清单 2: 样例 StockQuoteServiceDesk 的服务接口 WSDL 导入到实现 WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://SampleServiceDesk"
xmlns:intf="http://SampleServiceDesk-Interface"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://SampleServiceDesk-Interface">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://SampleServiceDesk-Interface">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_soapenc_string">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/>
</restriction>
</complexContent>
</complexType>
<element name="ArrayOf_soapenc_string" nillable="true"
type="intf:ArrayOf_soapenc_string"/>
</schema>
</wsdl:types>
<wsdl:message name="getQuoteDescriptiveRequest">
<wsdl:part name="session" type="soapenc:string"/>
<wsdl:part name="arg" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getQuoteSingleRequest">
<wsdl:part name="session" type="soapenc:string"/>
<wsdl:part name="symbol" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getQuoteSingleResponse">
<wsdl:part name="return" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getQuoteDescriptiveResponse">
<wsdl:part name="return" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getQuoteMultipleResponse">
<wsdl:part name="return" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getQuoteMultipleRequest">
<wsdl:part name="session" type="soapenc:string"/>
<wsdl:part name="symbols" type="intf:ArrayOf_soapenc_string"/>
</wsdl:message>
<wsdl:portType name="StockQuoteServiceDesk">
<wsdl:operation name="getQuoteDescriptive" parameterOrder="session arg">
<wsdl:input message="intf:getQuoteDescriptiveRequest"
name="getQuoteDescriptiveRequest"/>
<wsdl:output message="intf:getQuoteDescriptiveResponse"
name="getQuoteDescriptiveResponse"/>
</wsdl:operation>
<wsdl:operation name="getQuoteSingle" parameterOrder="session symbol">
<wsdl:input message="intf:getQuoteSingleRequest" name="getQuoteSingleRequest"/>
<wsdl:output message="intf:getQuoteSingleResponse" name="getQuoteSingleResponse"/>
</wsdl:operation>
<wsdl:operation name="getQuoteMultiple" parameterOrder="session symbols">
<wsdl:input message="intf:getQuoteMultipleRequest"
name="getQuoteMultipleRequest"/>
<wsdl:output message="intf:getQuoteMultipleResponse" name="getQuoteMultipleResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="servicedeskSoapBinding" type="intf:StockQuoteServiceDesk">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getQuoteDescriptive">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getQuoteDescriptiveRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:input>
<wsdl:output name="getQuoteDescriptiveResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getQuoteSingle">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getQuoteSingleRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:input>
<wsdl:output name="getQuoteSingleResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getQuoteMultiple">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getQuoteMultipleRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:input>
<wsdl:output name="getQuoteMultipleResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://SampleServiceDesk-Interface" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
|
返回正文。
|  |
|