The endpoint reference (EPR) for the Operation not found is

前端 未结 14 824
生来不讨喜
生来不讨喜 2020-12-06 16:43

I have been struggling with the following error the last couple of days can you please help!

I generated my server and client code using the wsdl2java tool from a ws

相关标签:
14条回答
  • 2020-12-06 17:15

    It seems don't find wsdl file..
    I've solved adding wsdlLocation parameter at javax.jws.WebService annotation

    0 讨论(0)
  • 2020-12-06 17:16

    Try adding ?wsdl to the string.

    0 讨论(0)
  • 2020-12-06 17:21

    try removing the extra '/' after the operation name (authentication) when invoking through the client

    /axis2/services/MyService/authentication?username=Denise345&password=xxxxx
    
    0 讨论(0)
  • 2020-12-06 17:22

    Late answer but:

    I see you do a GET - should be a POST ?

    0 讨论(0)
  • 2020-12-06 17:23

    As described by Eran Chinthaka at http://wso2.com/library/176/

    If Axis2 engine cannot find a service and an operation for a message, it immediately fails, sending a fault to the sender. If service not found - "Service Not found EPR is " If service found but not an operation- "Operation Not found EPR is and WSA Action = "

    In your case the service is found but the operation not. The Axis2 engine uses SOAPAction in order to figure out the requested operation and, in your example, the SOAPAction is missing, therefore I would try to define the SOAPAction header

    0 讨论(0)
  • 2020-12-06 17:23

    I had this same problem using curl to send a soap request. Solved it by adding "content-type: text/xml" to the http header.

    I hope this helps someone.

    0 讨论(0)
提交回复
热议问题