Siteminder integration problems with a portal
- From: Krishna Kanth Naishadham <Krishna Kanth Naishadham@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jun 2008 16:52:01 -0700
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
.
- Prev by Date: Re: deleting files older than * days
- Next by Date: Using wininet over http to get a get.cgi file
- Previous by thread: Re: deleting files older than * days
- Next by thread: Using wininet over http to get a get.cgi file
- Index(es):