怎么定义这个webservice的客户端访问方法
<?xml version="1.0" encoding="UTF-8" ?>- <!-- Created by TIBCO WSDL
-->
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.example.com/1373252579500/GetDataImpl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns0="http://proxy.yp.ieslab.com/" name="Untitled" targetNamespace="http://xmlns.example.com/1373252579500/GetDataImpl">
- <wsdl:types>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://proxy.yp.ieslab.com/" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="GUID" type="xs:string" />
- <xs:element name="GetData">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="ns0:Sender" />
<xs:element ref="ns0:GUID" />
<xs:element ref="ns0:base64data" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Sender" type="xs:string" />
<xs:element name="base64data" type="xs:base64Binary" />
- <xs:element name="GetDataResponse">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="ns0:return" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="return" type="xs:string" />
</xs:schema>
</wsdl:types>
- <wsdl:service name="GetEqumentPath__WS">
- <wsdl:port name="SOAPEventSource" binding="tns:SOAPEventSourceBinding">
<soap:address location="http://10.151.33.94:8089/processes/YDDD_HZ/GetEqumentPath_WS" />
</wsdl:port>
</wsdl:service>
- <wsdl:portType name="PortType">
- <wsdl:operation name="GetData">
<wsdl:input message="tns:GetData" />
<wsdl:output message="tns:GetDataResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="SOAPEventSourceBinding" type="tns:PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetData">
<soap:operation style="document" soapAction="/processes/YDDD_HZ/GetEqumentPath_WS" />
- <wsdl:input>
<soap:body use="literal" parts="part1" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" parts="part1" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:message name="GetData">
<wsdl:part name="part1" element="ns0:GetData" />
</wsdl:message>
- <wsdl:message name="GetDataResponse">
<wsdl:part name="part1" element="ns0:GetDataResponse" />
</wsdl:message>
</wsdl:definitions> webservice axis --------------------编程问答-------------------- 不管是客户端还是服务端,都会公用同一个wsdl文件。
通过脚本工具,会自动生成服务端代码,同时也会生成客户端代码的。 --------------------编程问答-------------------- axis 或使用cxf
http://blog.csdn.net/chenghui0317/article/category/1501739
看看能否帮到你。。
补充:Java , Java EE