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

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号