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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -