xfire webservice

fuxingzhong 2010-07-27 04:51:53
我这边用xfire根据对方给的wsdl创建了一个webservice服务,创建完成后对方调用我的webservice调用成功却的对到我返回过去的一个自定义对象。我用的是java对方是.net。对方的wsdl如下:
<?xml version="1.0" encoding="gb2312"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://CRMInterface.Customer.Besttone.cn" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://CRMInterface.Customer.Besttone.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://CRMInterface.Customer.Besttone.cn">
<s:element name="CRMUserAuth">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SystemsID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="AuthenName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="AuthenType" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CustType" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="AreaCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ExtendField" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="CRMUserAuthResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="CRMUserAuthResult" type="tns:CRMUserAuthResult" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="CRMUserAuthResult">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Result" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="ErrorDescription" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ExtendField" type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="CRMUserAuthSoapIn">
<wsdl:part name="parameters" element="tns:CRMUserAuth" />
</wsdl:message>
<wsdl:message name="CRMUserAuthSoapOut">
<wsdl:part name="parameters" element="tns:CRMUserAuthResponse" />
</wsdl:message>
<wsdl:portType name="CRMForBTUCenterSoap">
<wsdl:operation name="CRMUserAuth">
<wsdl:input message="tns:CRMUserAuthSoapIn" />
<wsdl:output message="tns:CRMUserAuthSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CRMForBTUCenterSoap" type="tns:CRMForBTUCenterSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="CRMUserAuth">
<soap:operation soapAction="http://CRMInterface.Customer.Besttone.cn/CRMUserAuth" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="CRMForBTUCenterSoap12" type="tns:CRMForBTUCenterSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="CRMUserAuth">
<soap12:operation soapAction="http://CRMInterface.Customer.Besttone.cn/CRMUserAuth" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CRMForBTUCenter">
<wsdl:port name="CRMForBTUCenterSoap" binding="tns:CRMForBTUCenterSoap">
<soap:address location="http://localhost/BestTone2UCenterInterface/CRMForBTUCenter/CRMForBTUCenter.asmx" />
</wsdl:port>
<wsdl:port name="CRMForBTUCenterSoap12" binding="tns:CRMForBTUCenterSoap12">
<soap12:address location="http://localhost/BestTone2UCenterInterface/CRMForBTUCenter/CRMForBTUCenter.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
我根据wsdl生成服务后的wsdl为下面:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://CRMInterface.Customer.Besttone.cn" xmlns:ns1="http://crminterface.customer.besttone.cn" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://CRMInterface.Customer.Besttone.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://CRMInterface.Customer.Besttone.cn">
<xsd:element name="CRMUserAuth">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="SystemsID" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="AuthenName" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="AuthenType" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="CustType" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="Password" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="AreaCode" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="ExtendField" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

</xsd:element>
<xsd:element name="CRMUserAuthResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="CRMUserAuthResult" nillable="true" type="ns1:CRMUserAuthResult"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://crminterface.customer.besttone.cn">
<xsd:complexType name="CRMUserAuthResult">
<xsd:sequence>
<xsd:element minOccurs="0" name="errorDescription" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="extendField" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="result" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>

</xsd:schema>
</wsdl:types>
<wsdl:message name="CRMUserAuthResponse">
<wsdl:part name="parameters" element="tns:CRMUserAuthResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="CRMUserAuthRequest">
<wsdl:part name="parameters" element="tns:CRMUserAuth">
</wsdl:part>

</wsdl:message>
<wsdl:portType name="CRMForBTUCenterSoap">
<wsdl:operation name="CRMUserAuth">
<wsdl:input name="CRMUserAuthRequest" message="tns:CRMUserAuthRequest">
</wsdl:input>
<wsdl:output name="CRMUserAuthResponse" message="tns:CRMUserAuthResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="CRMForBTUCenterHttpBinding" type="tns:CRMForBTUCenterSoap">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="CRMUserAuth">
<wsdlsoap:operation soapAction="http://CRMInterface.Customer.Besttone.cn/CRMUserAuth"/>
<wsdl:input name="CRMUserAuthRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="CRMUserAuthResponse">
<wsdlsoap:body use="literal"/>

</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CRMForBTUCenter">
<wsdl:port name="CRMForBTUCenterHttpPort" binding="tns:CRMForBTUCenterHttpBinding">
<wsdlsoap:address location="http://localhost:8088/services/CRMForBTUCenter"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
谁能帮忙解决一下非常感谢!
...全文
475 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧