The endpoint reference (EPR) for the Operation not found 可能问题以及解决办法

在调用webservice接口的时候一直报The endpoint reference (EPR) for the Operation not found这个错,最后在Stack Overflow上找到一个,说可能是content type的问题,

我之前用的application/xml格式,一直不行,换了application/x-www-form-urlencoded格式还是不行,然后换成text/xml格式就可以了

我传入的入参是纯xml文本,但是用错了content type。因为对content type这个了解的不是很多,导致找这个问题找了很久。

附上一个总结content type的链接

https://www.cnblogs.com/Im-Victor/p/9408449.html

原文地址:https://www.cnblogs.com/cykfory/p/11188021.html