Call Web Service .asmx using $.get jquery -
I need to call a simple method by using $ $ .get () from the WFService.asmx file.
This post works fine with the method. Here's the method:
[WebMethod] Public integer amount () {10 + 10 return; }
Now the code using Jquery:
$ ('WfService.asmx / Soma', function (data) {warning (data.);}, "Json");
And I get an error message. What am i doing wrong
To communicate with a SOAP web service, you must send it properly formatted SOAP XML which Define WSDL corresponds to. Unless you explicitly set up your ASP.NET Web service to return JSON data, you will not be able to request $ .get () without creating a sneak message.
Comments
Post a Comment