简体   繁体   English

Axis2 Web服务调用错误

[英]Axis2 web service invocation error

I tried to create a simple tester for my service and I get this exception: 我尝试为我的服务创建一个简单的测试器,但出现以下异常:

Exception in thread "main" org.apache.axis2.AxisFault: java.lang.UnsupportedOperationException: An access occurred that is not valid.
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
    at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
    at pinservice.PinOperationStub.changePin(PinOperationStub.java:496)
    at pinservice.PinOperationTester.main(PinOperationTester.java:22)

any help on troubleshooting this error or thoughts on why this happens ? 对解决此错误有任何帮助,或者对为什么会发生这种情况有任何想法?

It is an incorrect use of message receiver (in-out and in-only). 这是对消息接收器的不正确使用(输入输出和仅输入)。 Make sure to update services.xml file with correct configuration. 确保使用正确的配置更新services.xml文件。 More details available in below link with simple example. 下面的链接带有简单示例,提供了更多详细信息。

http://www.developer.com/services/article.php/3613896/Writing-an-Axis2-Service-from-Scratch.htm http://www.developer.com/services/article.php/3613896/Writing-an-Axis2-Service-from-Scratch.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM