var baseUrl = "http://localhost:49997/SMD_WCFService/Service.svc?wsdl"; function sendData() { var json = '{"result":{"n1":"' + 1 + '"' + ', "n2":"' + 2 + '"}}'; $.ajax( { type: "POST", contentType: "application/json; charset=utf-8", url: baseUrl, data: json, dataType: "json", success: function (data) { alert(data) }, error: function () { alert("not done") } }); // Another Serched Method var service = new Service.SMDService(); var result = service.Add(1, 2); alert(result); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)