Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 09, 2012 11:47 AM by Hariharasudhan
0 Points
11 Posts
Apr 09, 2012 11:47 AM|LINK
Hi,
I am trying to post an XML using MSXML2.ServerXMLHTTP and continuously getting 401 status code back i.e. access denied error.
xmlHttp = new ActiveXObject(MSXML2.ServerXMLHTTP);
xmlHttp.open("POST", Url, false);
//Send the request content.
xmlHttp.send(soapEnv);
Earlier we were using Microsoft.XMLHTTP and it was working fine for the above piece of code but MSXML2.ServerXMLHTTP gives back access denied message.
Then I tried passing the credentials and it worked fine.
xmlHttp.open("POST", Url, false, USERNAME , PASSWORD);
My question is does MSXML2.ServerXMLHTTP works only with credentials?
Thank you very much for your response!!!
Note:
Framework: .NET 2.0
Tool: VS2005
Browser: IE 8.0
Hariharasudh...
0 Points
11 Posts
MSXML2.ServerXMLHTTP Returned 401 - Access Denied error!!!
Apr 09, 2012 11:47 AM|LINK
Hi,
I am trying to post an XML using MSXML2.ServerXMLHTTP and continuously getting 401 status code back i.e. access denied error.
xmlHttp = new ActiveXObject(MSXML2.ServerXMLHTTP);
xmlHttp.open("POST", Url, false);
//Send the request content.
xmlHttp.send(soapEnv);
Earlier we were using Microsoft.XMLHTTP and it was working fine for the above piece of code but MSXML2.ServerXMLHTTP gives back access denied message.
Then I tried passing the credentials and it worked fine.
xmlHttp.open("POST", Url, false, USERNAME , PASSWORD);
My question is does MSXML2.ServerXMLHTTP works only with credentials?
Thank you very much for your response!!!
Note:
Framework: .NET 2.0
Tool: VS2005
Browser: IE 8.0