troubleshooting Question

Access is denied with ServerXMLHTTP

Avatar of vs1784
vs1784 asked on
Web Languages and Standards
10 Comments1 Solution782 ViewsLast Modified:
Hello All I am using the Msxml2.ServerXMLHTTP.4.0.

With that i need to sendobject but with that I am getting the access denied erro.

I have searched on web but could not find the solution.
object obj = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0");
        //object obj = Server.CreateObject("Msxml2.ServerXMLHTTP");
        string sUrl = "MYURL";
 
        MSXML2.ServerXMLHTTP objXmlHttp = (MSXML2.ServerXMLHTTP)obj;
        objXmlHttp.open("POST", sUrl, false, "", "");
        objXmlHttp.setRequestHeader("MessageType", "call");
        objXmlHttp.setRequestHeader("Content-Type", "text/xml");
        objXmlHttp.send(bodySTR);
        
        Response.Write(objXmlHttp.responseText);
        return true;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros