web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ActiveXObject.Open throwing access denied error, in crm webresource calling external webservice

(0) ShareShare
ReportReport
Posted on by

var WEB_SERVICE_URL = "b1crmappuat.bca.gov.sg/CRM_CCMP_GetRoutingHistoryCCMP.asmx";
//"192.168.30.156/.../CRM_ESB_GetRoutingHistoryCCMP.asmx";

var SOAP_PARAMETER =
"<?xml version='1.0' encoding='utf-8'?>" +
"<GetRoutingHistoryCCMPRequestType>" +
" <CentralCaseID>" + CentralCaseID + "</CentralCaseID>" +
" <AgencyCaseID>" + ticketnumber + "</AgencyCaseID>" +
"</GetRoutingHistoryCCMPRequestType>";

/*Preparing XML Soap Request for calling */
var SOAP_REQUESTXML = "<soap:Envelope xmlns:soap='schemas.xmlsoap.org/.../envelope'" +
" xmlns:xsi='www.w3.org/.../XMLSchema-instance'" +
" xmlns:xsd='www.w3.org/.../XMLSchema'>" +
" <soap:Body>" +
" <GetRoutingHistoryCCMP xmlns='http://tempuri.org/'>";

SOAP_REQUESTXML = SOAP_REQUESTXML + " <reqXml>" + SOAP_PARAMETER.encodeXml() + "</reqXml>";
// Added below parameters to the XML as the webmethod requires additional parameters - ON 18 JUN 2016
SOAP_REQUESTXML = SOAP_REQUESTXML + " <caseID>" + incidentID + "</caseID>";
SOAP_REQUESTXML = SOAP_REQUESTXML + " <transactionID>" + " " + "</transactionID>";
SOAP_REQUESTXML = SOAP_REQUESTXML + " </GetRoutingHistoryCCMP>";
SOAP_REQUESTXML = SOAP_REQUESTXML + " </soap:Body>";
SOAP_REQUESTXML = SOAP_REQUESTXML + " </soap:Envelope>";

var CallingFunctionURL = "http://tempuri.org/" + "GetRoutingHistoryCCMP";

// xmlHttp = new XMLHttpRequest();
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");

xmlHttp.open("POST", "b1crmappuat.bca.gov.sg/CRM_CCMP_GetRoutingHistoryCCMP.asmx", true);
xmlHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlHttp.setRequestHeader("Content-Length", SOAP_REQUESTXML.length);
xmlHttp.setRequestHeader("SOAPAction", CallingFunctionURL);
xmlHttp.onreadystatechange = function () {

ParseResult();
};
xmlHttp.send(SOAP_REQUESTXML);

but the ActiveXObject , Xmlhttp.Open() method throwing error saying access denied 

please help, when CRM binding is http, i didnt face this error, now CRM binding changed to https via SSL validation, when i try to access the external website it throwing error now 

thanks

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans