tags:

views:

495

answers:

0

Has anyone used the http://plugins.jquery.com/project/jqSOAPClient plugin to call any WCF Services (obviously via SOAP)? Doesn't seem to be working as expected.

    var soapBody = new SOAPObject("GetSomethingById").attr("id").val(123);
    var soapRequest = new SOAPRequest("http://tempuri.org/ISomething/GetSomethingById", soapBody);
    SOAPClient.Proxy = "http://[servername]/Something.svc";
    SOAPClient.SendRequest(soapRequest, processResponse);
    function processResponse(respObj) {
        alert("success");
    }

Thanks!