sarpay
11/18/2014 - 7:54 PM

[.net] Enable web service for GET requests

[.net] Enable web service for GET requests

</system.web>
  <webServices>
    <protocols>
      <add name="HttpGet" />
      <add name="HttpPost" />
    </protocols>
  </webServices>
</system.web>
    

<WebMethod()> _
<ScriptMethod(UseHttpGet:=True)> _
Public Function SetUserInfo( _
    ByVal name As String, _
    ByVal time As String _
  ) As String
  .....
End Function


$.get("service.asmx/SetUserInfo", { name: "John", time: "2pm" } );