在调用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

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-12-11
  • 2022-01-31
  • 2022-01-17
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2021-04-19
  • 2022-02-24
  • 2021-05-26
  • 2022-02-05
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案