服务器端是移动给的,我们用WSDL2Java生成客户端
报错:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter 'event': could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter 'event': could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
faultActor:
faultNode:
faultDetail: org.xml.sax.SAXException: Deserializing parameter 'event': could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.ws.um.UserManageSoapBindingStub.getPwd(UserManageSoapBindingStub.java:336)
at TestWS.main(TestWS.java:41)
prbt_UserManage_v1.0.wsdl<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://impl.prbt.cmcc.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://impl.prbt.cmcc.com" xmlns:intf="http://impl.prbt.cmcc.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://schemas.prbt.cmcc.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2beta3
Built on Aug 01, 2004 (05:59:22 PDT)-->
<wsdl:types>
<schema targetNamespace="http://schemas.prbt.cmcc.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="GetValidateCodeEvt">
<sequence>
<element name="DID" nillable="true" type="xsd:string"/>
<element name="DIDPwd" nillable="true" type="xsd:string"/>
<element name="MSISDN" nillable="true" type="xsd:string"/>
<element name="SEQ" nillable="true" type="xsd:string"/>
<element name="deviceType" nillable="true" type="xsd:string"/>
<element name="role" nillable="true" type="xsd:string"/>
<element name="roleCode" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
...............................省略
............................... <wsdl:operation name="logout"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="logoutRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://impl.prbt.cmcc.com" use="encoded"/> </wsdl:input> <wsdl:output name="logoutResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://impl.prbt.cmcc.com" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="UserManageService"> <wsdl:port binding="impl:UserManageSoapBinding" name="UserManage"> <wsdlsoap:address location="http://218.205.231.244:8080/jboss-net/services/ClubUserManage"/> </wsdl:port> </wsdl:service></wsdl:definitions>
报错:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter 'event': could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter &apos;event&apos;: could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
faultActor:
faultNode:
faultDetail: org.xml.sax.SAXException: Deserializing parameter 'event': could not find deserializer for type {http://schemas.prbt.cmcc.com}GetPwdEvt
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.ws.um.UserManageSoapBindingStub.getPwd(UserManageSoapBindingStub.java:336)
at TestWS.main(TestWS.java:41)
prbt_UserManage_v1.0.wsdl<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://impl.prbt.cmcc.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://impl.prbt.cmcc.com" xmlns:intf="http://impl.prbt.cmcc.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://schemas.prbt.cmcc.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2beta3
Built on Aug 01, 2004 (05:59:22 PDT)-->
<wsdl:types>
<schema targetNamespace="http://schemas.prbt.cmcc.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="GetValidateCodeEvt">
<sequence>
<element name="DID" nillable="true" type="xsd:string"/>
<element name="DIDPwd" nillable="true" type="xsd:string"/>
<element name="MSISDN" nillable="true" type="xsd:string"/>
<element name="SEQ" nillable="true" type="xsd:string"/>
<element name="deviceType" nillable="true" type="xsd:string"/>
<element name="role" nillable="true" type="xsd:string"/>
<element name="roleCode" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
...............................省略
............................... <wsdl:operation name="logout"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="logoutRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://impl.prbt.cmcc.com" use="encoded"/> </wsdl:input> <wsdl:output name="logoutResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://impl.prbt.cmcc.com" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="UserManageService"> <wsdl:port binding="impl:UserManageSoapBinding" name="UserManage"> <wsdlsoap:address location="http://218.205.231.244:8080/jboss-net/services/ClubUserManage"/> </wsdl:port> </wsdl:service></wsdl:definitions>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货