\[code\]$.ajax({ type: "GET", url: "http://localhost:4994/Service1.svc/IService1", //data: 'username=' + user + '&password=' + pass, contentType: "application/json; charset=utf-8", dataType: "json", processData: true, success: function(result) { AjaxSucceeded(result); }, error: AjaxFailed});function AjaxSucceeded(result) { alert(result);}function AjaxFailed(result) { alert(result.status + ' ' + result.statusText);}?\[/code\]