JB 开发webservices时,会生成一个XML文件,根据这个文件,声成Delphi客户端
http://192.168.10.137:8080/webApp/services/webtest?wsdl
<?xml version="1.0"
encoding="UTF-8"
?>
- <wsdl:definitions targetNamespace="http://192.168.10.137:8080/webApp/services/webtest"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://192.168.10.137:8080/webApp/services/webtest"
xmlns:intf="http://192.168.10.137:8080/webApp/services/webtest"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="null"
xmlns:tns2="http://webserv"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <schema targetNamespace="null"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"
/>
- <complexType name="ArrayOffString">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:string[]"
/>
</restriction>
</complexContent>
</complexType>
<element name="ArrayOffString"
nillable="true"
type="tns1:ArrayOffString"
/>
- <complexType name="ArrayOffint">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:int[]"
/>
</restriction>
</complexContent>
</complexType>
<element name="ArrayOffint"
nillable="true"
type="tns1:ArrayOffint"
/>
</schema>
- <schema targetNamespace="http://webserv"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"
/>
- <complexType name="stManageAccount">
- <sequence>
<element name="p_operateID"
nillable="true"
type="xsd:string"
/>
<element name="p_accountNum"
nillable="true"
type="xsd:string"
/>
<element name="p_password"
nillable="true"
type="xsd:string"
/>
<element name="p_payType"
nillable="true"
type="xsd:string"
/>
<element name="p_payTele"
nillable="true"
type="xsd:string"
/>
<element name="p_businessArea"
nillable="true"
type="xsd:string"
/>
<element maxOccurs="unbounded"
name="p_details"
nillable="true"
type="tns2
ropertyData"
/>
<element name="p_actionCode"
type="xsd:int"
/>
<element name="p_CSPID"
nillable="true"
type="xsd:string"
/>
<element name="p_CSPName"
nillable="true"
type="xsd:string"
/>
<element name="p_CSPTypeID"
nillable="true"
type="xsd:string"
/>
<element name="p_CSPTypeName"
nillable="true"
type="xsd:string"
/>
</sequence>
</complexType>
- <complexType name="PropertyData">
- <sequence>
<element name="p_dataName"
nillable="true"
type="xsd:string"
/>
<element name="p_dataValue"
nillable="true"
type="xsd:string"
/>
</sequence>
</complexType>
<element name="stManageAccount"
nillable="true"
type="tns2:stManageAccount"
/>
- <complexType name="OperateResult97">
- <sequence>
<element name="operateID"
nillable="true"
type="xsd:string"
/>
<element name="resultCode"
type="xsd:int"
/>
<element name="errorInfo"
nillable="true"
type="xsd:string"
/>
</sequence>
</complexType>
<element name="OperateResult97"
nillable="true"
type="tns2:OperateResult97"
/>
</schema>
</wsdl:types>
- <wsdl:message name="getStringResponse">
<wsdl
art name="getStringReturn"
type="xsd:string"
/>
</wsdl:message>
- <wsdl:message name="getAddResponse">
<wsdl
art name="getAddReturn"
type="xsd:int"
/>
</wsdl:message>
- <wsdl:message name="getArrayAddRequest">
<wsdl
art name="ss"
type="tns1:ArrayOffint"
/>
</wsdl:message>
- <wsdl:message name="setSampleRequest">
<wsdl
art name="sample"
type="xsd:string"
/>
</wsdl:message>
- <wsdl:message name="getStringRequest">
<wsdl
art name="s1"
type="xsd:string"
/>
<wsdl
art name="s2"
type="xsd:string"
/>
</wsdl:message>
<wsdl:message name="mainResponse"
/>
<wsdl:message name="setNumberRequest"
/>
<wsdl:message name="setNumberResponse"
/>
- <wsdl:message name="mainRequest">
<wsdl
art name="args"
type="tns1:ArrayOffString"
/>
</wsdl:message>
- <wsdl:message name="ManageAccountRequest">
<wsdl
art name="p_ma"
type="tns2:stManageAccount"
/>
</wsdl:message>
- <wsdl:message name="ManageAccountResponse">
<wsdl
art name="ManageAccountReturn"
type="tns2:OperateResult97"
/>
</wsdl:message>
<wsdl:message name="getSampleRequest"
/>
- <wsdl:message name="getAddRequest">
<wsdl
art name="s1"
type="xsd:int"
/>
<wsdl
art name="s2"
type="xsd:int"
/>
</wsdl:message>
- <wsdl:message name="getSampleResponse">
<wsdl
art name="getSampleReturn"
type="xsd:string"
/>
</wsdl:message>
<wsdl:message name="setSampleResponse"
/>
- <wsdl:message name="getArrayAddResponse">
<wsdl
art name="getArrayAddReturn"
type="xsd:int"
/>
</wsdl:message>
- <wsdl
ortType name="webtest">
- <wsdl
peration name="main"
parameterOrder="args">
<wsdl:input message="impl:mainRequest"
name="mainRequest"
/>
<wsdl
utput message="impl:mainResponse"
name="mainResponse"
/>
</wsdl
peration>
- <wsdl
peration name="getString"
parameterOrder="s1 s2">
<wsdl:input message="impl:getStringRequest"
name="getStringRequest"
/>
<wsdl
utput message="impl:getStringResponse"
name="getStringResponse"
/>
</wsdl
peration>
- <wsdl
peration name="setNumber">
<wsdl:input message="impl:setNumberRequest"
name="setNumberRequest"
/>
<wsdl
utput message="impl:setNumberResponse"
name="setNumberResponse"
/>
</wsdl
peration>
- <wsdl
peration name="getSample">
<wsdl:input message="impl:getSampleRequest"
name="getSampleRequest"
/>
<wsdl
utput message="impl:getSampleResponse"
name="getSampleResponse"
/>
</wsdl
peration>
- <wsdl
peration name="setSample"
parameterOrder="sample">
<wsdl:input message="impl:setSampleRequest"
name="setSampleRequest"
/>
<wsdl
utput message="impl:setSampleResponse"
name="setSampleResponse"
/>
</wsdl
peration>
- <wsdl
peration name="getAdd"
parameterOrder="s1 s2">
<wsdl:input message="impl:getAddRequest"
name="getAddRequest"
/>
<wsdl
utput message="impl:getAddResponse"
name="getAddResponse"
/>
</wsdl
peration>
- <wsdl
peration name="getArrayAdd"
parameterOrder="ss">
<wsdl:input message="impl:getArrayAddRequest"
name="getArrayAddRequest"
/>
<wsdl
utput message="impl:getArrayAddResponse"
name="getArrayAddResponse"
/>
</wsdl
peration>
- <wsdl
peration name="ManageAccount"
parameterOrder="p_ma">
<wsdl:input message="impl:ManageAccountRequest"
name="ManageAccountRequest"
/>
<wsdl
utput message="impl:ManageAccountResponse"
name="ManageAccountResponse"
/>
</wsdl
peration>
</wsdl
ortType>
- <wsdl:binding name="webtestSoapBinding"
type="impl:webtest">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"
/>
- <wsdl
peration name="main">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="mainRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="mainResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="getString">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="getStringRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="getStringResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="setNumber">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="setNumberRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="setNumberResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="getSample">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="getSampleRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="getSampleResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="setSample">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="setSampleRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="setSampleResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="getAdd">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="getAddRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="getAddResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="getArrayAdd">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="getArrayAddRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="getArrayAddResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="ManageAccount">
<wsdlsoap
peration soapAction=""
/>
- <wsdl:input name="ManageAccountRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl:input>
- <wsdl
utput name="ManageAccountResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://192.168.10.137:8080/webApp/services/webtest"
use="encoded"
/>
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
- <wsdl:service name="webtestService">
- <wsdl
ort binding="impl:webtestSoapBinding"
name="webtest">
<wsdlsoap:address location="http://192.168.10.137:8080/webApp/services/webtest"
/>
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>