Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

w2ksp4.exe, WwwxxXdbf, procmail "FROM_MAILER" patch, Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF



#1: cleartrust authentication in ASP

Posted on 2008-01-30 23:50:01 by TTK

I have an ASP page that will be calling a web service. The web service
is secured by clear trust authentication. We have done some research and we
found that we need to do the following in order to reach the web service from
our ASP:
1. Create MSXML2.XMLHTTP object in the ASP
2. call the URL where the web service resides passing to it the user id and
3. capture the new url and the cookie that the response will contain
4. call the new url and pass to it the cookie that was received in the
5. another URL will be received and we need to use that to access the web
These are the steps that we understood that needs to be done. I am really
disappointed that there are no documentations on that. Also, I am wondering
if there is any code that some one can share with me to use in my ASP. this
is the code that I have for now but I need to include those steps.
function fnCallWS(parm1, parm2, parm3)
Dim objxmlhttp
Dim strDataToSend
Dim strPostUrl
Dim strReturn

strDataToSend="val1=" & parm1& "&val2=" & parm2& "&val3=" & parm3
strPostUrl = "https://XXXXXXX/service.asmx"
Set objxmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
objxmlhttp.Open "POST",strPostUrl,false
objxmlhttp.send strDataToSend
strReturn = objxmlhttp.responseText
end function

Report this message