根据wsdl文件生成客户端
下面是获得的wsdl文件:<?xml version="1.0" encoding="UTF-8"?>
<definitions name="sa_config" targetNamespace="urn:saconf"
xmlns:tns="urn:saconf"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:saconf"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="urn:saconf"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:saconf"
xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
<!-- operation request element -->
<element name="sa-config">
<complexType>
<sequence>
<element name="func" type="xsd:int" minOccurs="1"
maxOccurs="1" />
<element name="s-username" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true" />
<element name="s-password" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true" />
<element name="s-xml-in" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true" />
</sequence>
</complexType>
</element>
<!-- operation response element -->
<element name="sa-configResponse">
<complexType>
<sequence>
<element name="s-xml-out" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true" />
<element name="result" type="xsd:int" minOccurs="1"
maxOccurs="1" />
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="sa-config">
<part name="parameters" element="ns:sa-config" />
</message>
<message name="sa-configResponse">
<part name="parameters" element="ns:sa-configResponse" />
</message>
<portType name="sa_configPortType">
<operation name="sa-config">
<documentation>Service definition of function ns__sa_config
</documentation>
<input message="tns:sa-config" />
<output message="tns:sa-configResponse" />
</operation>
</portType>
<binding name="sa_config" type="tns:sa_configPortType">
<SOAP:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="sa-config">
<SOAP:operation soapAction="" />
<input>
<SOAP:body parts="parameters" use="literal" />
</input>
<output>
<SOAP:body parts="parameters" use="literal" />
</output>
</operation>
</binding>
<service name="sa_config">
<documentation>gSOAP 2.7.13 generated service definition
</documentation>
<port name="sa_config" binding="tns:sa_config">
<SOAP:address location="http://10.130.0.162/" />
</port>
</service>
</definitions>
根据这个文件在eclipse中生成客户端,调用人家的接口
我的邮箱:13819471201@139.com
[解决办法]
在eclipse中生成客户端
你是根据cxf还是axis等生成?