未找到操作的端点引用 (EPR) [英] The endpoint reference (EPR) for the Operation not found

查看:45
本文介绍了未找到操作的端点引用 (EPR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

线程main"org.apache.axis2.AxisFault 中的异常:端点未找到操作的参考 (EPR) 是/services/MyTest?wsdl和 WSA 操作 = .如果此 EPR 以前可访问,请联系服务器管理员.在org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)在org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)在org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)在org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)在org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)在org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)在org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)在org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)在 com.saien.pojo.RPCClient.main(RPCClient.java:68)

Exception in thread "main" org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /services/MyTest?wsdl and the WSA Action = . If this EPR was previously reachable, please contact the server administrator. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375) 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 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102) at com.saien.pojo.RPCClient.main(RPCClient.java:68)

推荐答案

出现这种情况是因为每个操作中的源 WSDL 都没有定义 SOAPAction 值.

It happens because the source WSDL in each operation has not defined the SOAPAction value.

例如

<soap12:operation soapAction="" style="document"/>  

他对 WSO2 服务器很重要.

His is important for the WSO2 server.

如果您已经在 netbeans 或其他上创建了服务,请不要忘记在标签 @WebMethod

If you have created the service on netbeans or another, don't forget to set the value action on the tag @WebMethod

示例:

@WebMethod(action = "hello", operationName = "hello")

这将自行创建 SOAPAction 值.

This will create the SOAPAction value by itself.

这篇关于未找到操作的端点引用 (EPR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆