locked
Calling RestFul WCF from JavaScript CRM 2011 RRS feed

  • Question

  • Hello Experts,

    I have an issue and required help urgently.

    I have deployed one Restful service in ISV folder(CRMAppPool) and enable Anonymous Authentication and service is working fine but when I am calling this service from JavaScript, it is not working and when I am checking in browser(F12 ->Network->Start Capturing) there I am getting response 'Aborted'. If I am deploying same service outside the CRM app pool, this is working fine.

    function CallULSService(funcURL, Data) {
       var url = "http://<crmserver>/ULSService.svc/ulsrest/SubmitLabor";

        var result;
        jQuery.support.cors = true;
        $.ajax({
            async: false,
            type: "POST",
            url: url,
            data: JSON.stringify(Data),
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            processdata: false,
            crossDomain: true,
            success: function (msg) {
                processLaborEntryList(msg);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                errorHandler(XMLHttpRequest, textStatus, errorThrown);
            }

        });

        return result;
    }


    Regards, Arvind


    • Edited by ArvindSingh Wednesday, March 11, 2015 12:52 PM corrected url
    Wednesday, March 11, 2015 11:19 AM