1. 程式人生 > >用ladon框架封裝Python為Webservice介面以及呼叫介面的方法

用ladon框架封裝Python為Webservice介面以及呼叫介面的方法

複製程式碼
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:Calculator" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Calculator" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Calculator" targetNamespace="urn:Calculator"> <wsdl:types> <xsd:schema xmlns:ns1
="urn:Calculator" targetNamespace="urn:Calculator"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> </xsd:schema> </wsdl:types> <wsdl:message name="add"> <wsdl:part name="a" type="xsd:long"/> <wsdl:part name="b" type="xsd:long"/> </wsdl:message> <
wsdl:message name="addResponse"> <wsdl:part name="result" type="xsd:long"/> </wsdl:message> <wsdl:message name="minus"> <wsdl:part name="a" type="xsd:long"/> <wsdl:part name="b" type="xsd:long"/> </wsdl:message> <wsdl:message name="minusResponse"> <wsdl:part name="result" type="xsd:long"/> </wsdl:message> <wsdl:portType name="CalculatorPortType"> <wsdl:operation name="add"> <wsdl:input message="tns:add"/> <wsdl:output message="tns:addResponse"/> </wsdl:operation> <wsdl:operation name="minus"> <wsdl:input message="tns:minus"/> <wsdl:output message="tns:minusResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Calculator" type="tns:CalculatorPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="add"> <soap:operation soapAction="http://192.168.18.74/api/Calculator/soap11/add" style="rpc"/> <wsdl:input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Calculator" use="encoded"/> </wsdl:input> <wsdl:output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Calculator" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="minus"> <soap:operation soapAction="http://192.168.18.74/api/Calculator/soap11/minus" style="rpc"/> <wsdl:input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Calculator" use="encoded"/> </wsdl:input> <wsdl:output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Calculator" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Calculator"> <wsdl:documentation>Ladon generated service definition</wsdl:documentation> <wsdl:port binding="tns:Calculator" name="Calculator"> <soap:address location="http://192.168.18.74/api/Calculator/soap11"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
複製程式碼