locked
Calling Webservice from Javascript RRS feed

  • Question

  • Hi, I am calling an ASP.net webs ervice from javascript. If I use it on my web page this works perfectly. But when I copy this to my CRM page on change event, I get the error, 'Access Denied'. I tried copying my solution that contains the webservice to the server running CRM and gave the server name in the domain, still it doesn't work. Following is my code in the onchange event. Any help, please. Thanks

    var xmlHttp=new XMLHttpRequest();
    if(window.XMLHttpRequest)
    {
      var url="http://localhost:XXX/ParentDetails.asmx/returnDetails";
      xmlHttp.open("GET", url, false);  
      xmlHttp.send(null);

    }

    Thursday, June 4, 2009 7:10 PM

Answers

All replies