Use ServerXMLHTTP to get the auth info throw lgnIntAu.asp failed. Error 5003

P

Pu Gong

Hi,
I want to use lgnIntAu.asp to get the auth info from project server 2000.
Currently, I have disabled the anonymous login to the project server. But I
alway get an 5003 error back not the cookies. But I Open the URL in the IE
directly, It successed without any problems.

I didn't know why and can't find a way out of here. Wish you advice and
thank a lot


The code is attched below:

var sURL = "http://ProjectServerName/projectserver/LgnIntAU.asp"

objServerXml = new ActiveXObject("MSXML2.ServerXMLHTTP");

objServerXml.open("GET", sURL, false);
objServerXml.send();

var objXMLResponse = new ActiveXObject("MSXML2.DOMDocument");
objXMLResponse.loadXML(objServerXml.responseText);

var sCookie;
var oNode = null;
var parseErrorcode = objXMLResponse.parseError.errorCode;

if (parseErrorcode == 0 )
{
oNode = objXMLResponse.selectSingleNode("Reply/Cookie");
if ( typeof(oNode) != "undefined")
{
sCookie = oNode.text;
}
else
sCookie = "";
};
 
Top