webservice支持httpget及post方法
1.在web.config中节点system.web里面添加
<webServices> <protocols> <add name="HttpGet" /> <add name="HttpPost" /> </protocols> </webServices>
2.在调用方法添加特性
[WebMethod,ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)]
参考:https://www.cnblogs.com/FlyStupidBird/p/13431621.html