Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 11 Jun 2008 16:52:01 -0700,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Siteminder integration problems with a portal   
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
date: Wed, 11 Jun 2008 16:52:01 -0700   author:   Krishna Kanth Naishadham Krishna Kanth

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us