axis webservice 调用出错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了axis webservice 调用出错相关的知识,希望对你有一定的参考价值。

代码如下:
Service s = new Service();
Call call = (Call) s.createCall();
call.setTimeout(new Integer(5000));
call.setOperationName("XXX");
call.setTargetEndpointAddress(new java.net.URL(urlname));
Object[] req = XXX ;
key = (String) call.invoke(req);

错误如下:
AxisFault
faultCode: http://schemas.xmlsoap.org/soap/envelope/Server
faultSubcode:
faultString: Fault occurred while processing.
faultActor:
faultNode:
faultDetail:
http://xml.apache.org/axis/stackTrace:Fault occurred while processing.
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
请高人帮忙看看是什么原因。

参考技术A 看不明白错误原因,像是通用的错误原因。看看服务器端如何写的,看看发布的WSDL

使用axis2调用webservice时,服务端接收到的参数为null

使用axis2调用webservice时,服务端接收到的参数为nullEOS6.3封装的webservice服务

参考技术A axis2 只需配置aar发布包就,自动生成wsdl等。。追问

客户端调用服务端,明明写了入参,并已给值,但,后端打印为null

以上是关于axis webservice 调用出错的主要内容,如果未能解决你的问题,请参考以下文章

java调用webservice出错了!

java怎么使用axis调用webservice

如何解决java axis 调用webservice服务器操作异常

菜鸟调错——Jboss与jdk版本号不兼容导致WebService调用出错

WebService学习之旅使用Apache Axis2实现WebService客户端调用

请问达人,java 提供webservice接口,用XML传输数据,怎么实现?