调用WebService报错 因 URL 意外地以“/Callback1688”结束,请求格式无法识别

解决方法:

在Web.config文件中system.web中添加如下配置:

<!--.asmx支持post请求或者get请求调用(WebService "因 URL 意外地以 结束,请求格式无法识别" 的解决方法)-->
<webServices>
<protocols>
<add name= "HttpPost" />
<add name= "HttpGet" />
</protocols>
</webServices>

 

posted @ 2020-10-30 13:22  温故纳新  阅读(127)  评论(0编辑  收藏  举报