Siteminder integration problems with a portal

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am trying to integrate Siteminder with a web portal. I get the User ID from
SiteMinder which I send to webservice hosted on the same web server to
retrieve a authentication token for logging onto the portal.
I am using the MSXML2.XMLHttpRequest class to complete this job. The example
code is a s follows and the error that I am getting is also listed in the
code (//COMMENT)

<script runat="server" language = "vbscript">

OG_USER = Request.ServerVariables ("HEADER_SM_USER")
OG_ORGANIZATION = "somecompany"

Response.redirect "http://localhost/SilentLogin.asp?AuthToken="; &
Server.URLEncode (consumeWebService(OG_USER,OG_ORGANIZATION)) &
"&DesiredPage=" & Server.URLEncode("http://localhost/index.asp";)


Function consumeWebService(user,organization)
Dim webServiceUrl, httpReq, node, myXmlDoc

webServiceUrl =
"http://localhost/WebServices/OblicoreAuth.asmx/AuthenticateUser?userName="; &
og_user & "&organizationName=" & OG_organization

Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")

httpReq.Open "GET", webServiceUrl, False

httpReq.Send


Set myXmlDoc =Server.CreateObject("MSXML.DOMDocument")

//COMMENT - ResponseBody does not contain any value
myXmlDoc.load(httpReq.responseBody)


Set httpReq = Nothing

//COMMENT - I am not getting any value from this property
consumeWebService = myXmlDoc.text


End Function


</script>


If I type
"http://localhost/WebServices/OblicoreAuth.asmx/AuthenticateUser?userName=user&organizationName=organization";
then I am able to get an authentication token without any problem.

Can someone please help me identify where the problem exists? and how to
solve this peculiar problem


.