【问题标题】:The endpoint reference (EPR) for the Operation not found未找到操作的端点参考 (EPR)
【发布时间】:2014-08-29 04:34:57
【问题描述】:

线程“主”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)

【问题讨论】:

  • 在wso2esb上部署了一个WebService,得到了代理服务。访问Axis2的服务形式,就可以了。从 esb 访问代理服务,出现此错误。

标签: wso2esb


【解决方案1】:

这是因为每个操作中的源 WSDL 没有定义 SOAPAction 值。

例如

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

他对 WSO2 服务器很重要。

如果你已经在netbeans或其他上创建了服务,别忘了在标签@WebMethod上设置值动作

例子:

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

这将自行创建 SOAPAction 值。

【讨论】:

    【解决方案2】:

    您是否发布了代理服务的 WSDL?如果没有,请转到代理的“设计视图”,在“基本设置”下,您可以找到“发布 WSDL”下拉菜单。 从下拉列表中选择“Specify Source URL”,对于 WSDL URI,暂时输入 Axis2 服务的 wsdl。保存设置并尝试访问代理。

    检查这是否能解决问题。

    【讨论】:

      猜你喜欢
      • 2011-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-06
      • 1970-01-01
      相关资源
      最近更新 更多