Calling .asmx webservice from jQuery: GET is not allowed?
问题 I have a simple page. On load, it calls a web service, and then I get the following error: an attempt was made to call the method using a GET request, which is not allowed My JS-code: function getTutors() { var url = '<%= ResolveUrl("~/services/tutorservice.asmx/gettutors") %>'; $.ajax({ type: "GET", data: "{'data':'" + 'test-data' + "'}", url: url, contentType: "application/json; charset=utf-8", dataType: "json", success: function (d) { alert('succes'); return d; }, error: function () {