microsoft web services
Web

Ajax Call to Webservice

Ajax call to the services can be make in the following manner. $(function () { $("#callnow").click(function () { thirdCall(); }); }); function thirdCall() { var obj1 = { Colour: "Red Maruti", Price: "2995" }; $.ajax({ type: 'POST', contentType: 'application/json; charset=utf-8', data: JSON.stringify({ cat: obj1 }), url: "Services/DemoService.asmx/AddCarData", dataType: "json", success: Read more…