本文介绍了找不到该操作的端点参考(EPR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在最后几个错误中一直在遇到以下错误几天可以请您帮忙!
I have been struggling with the following error the last couple ofdays can you please help!
我使用wsdl2java工具从wsdl 2.0文件.调用Web服务时,出现以下错误:
I generated my server and client code using the wsdl2java tool from awsdl 2.0 file.When invoking the webservice I am getting the following error:
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
Operation not found is
/axis2/services/MyService/authentication/?username=Denise345&password=xxxxx
and the WSA Action = null
我的服务将以所有可用方法显示在axis2网页上.这是TcpMon的输出
My service is displayed on the axis2 webpage with all available methods.Here is the output from TcpMon
==============
Listen Port: 8090
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
GET /axis2/services/MyService/authentication/?username=Denise345&password=xxxxx
HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
SOAPAction: ""
User-Agent: Axis2
Host: 127.0.0.1:8090
==== Response ====
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 12 May 2011 15:53:20 GMT
Connection: close
12b
<soapenv:Reason xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Text xml:lang="en-US">The endpoint reference (EPR) for the
Operation not found is
/axis2/services/MyService/authentication/?username=Denise345&password=xxxxx
and the WSA Action = null</soapenv:Text></soapenv:Reason>
0
==============
==============
我正在使用:
- axis2-1.5.4
- Tomcat 7.0.8
- wsdl 2.0文件
请帮助!
推荐答案
在我的情况下,这是由HTTP POST中的错误Content-Type
引起的.将其设置为text/xml
即可解决问题.
In my case it was caused by a wrong Content-Type
in the HTTP POST. Setting it to text/xml
solved the problem.
这篇关于找不到该操作的端点参考(EPR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!