请求web服务时,会有如题的异常出现,解决方法如下:

1 检查web服务是否正常,如果web服务有异常,那么Web服务控制程序就会以text/html的格式显示异常信息,这样客户端就会出现“....   应该是text/xml...”的提示。

2 config文件中添加

<webServices>
      <protocols>
        <add name="HttpSoap"/>
        <add name="HttpPost"/>
        <add name="HttpGet"/>
        <add name="Documentation"/>
      </protocols>
    </webServices>

节。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2021-06-05
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案