Hi all,

Is there an equivalent tag or call in coldfusion the achieve the asp below,
namely the xmlhttp.Open bit. I am integrating a solution for WorldPay /
Streamline Royal Bank of Scotland using the Redirect Method.

And have to post some xml to the url
https://secure-test.streamline-esolutions.com/jsp/merchant/xml/paymentService.jsp
..


Many thanks for any help :-)



*********** eg *********


sub XML2Streamline(sXML)

 Response.Write "<PRE>" & server.HTMLEncode(sXML) & "</pre><BR>sending
XML... <HR>" ' check what you're sending
 Response.flush
'Send the XML--------------------------------------------------------------
    Set xmlhttp =  Server.CreateObject("Msxml2.ServerXMLHTTP") ' the MS
parser HTTP component
    ' use ServerXMLHTTP - Check
http://support.microsoft.com/support/kb/articles/Q237/9/06.ASP
    ' if you get 'Err = Access is denied.' then try Msxml2.XMLHTTP (less
reliable)

    xmlhttp.Open "POST",sURL, false, sUser, sPass
    xmlhttp.setRequestHeader "Content-Type", "text/xml"

    on error resume next
    xmlhttp.Send(sXML)

    if err then
        Response.Write "Err = " & err.description & "<BR>"
        Response.Write "Send Status : " & xmlhttp.status & "<BR>"
        Response.End
    end if

    Response.Write "Send Status (200 = OK) : <B>" & xmlhttp.status &
"</b><BR>"
    'Response.write "Headers :" & "<BR>" & xmlhttp.getAllResponseHeaders

    sUrl = ParseResponse(xmlhttp.responseText)
    if instr(sUrl,"ERROR") then
        Response.Write sURL
        Response.Write "<BR>Error received from Streamline eSolutions :"
        Response.Write "<BR><PRE>" & server.htmlencode(xmlhttp.responseText)
    else
        Response.Write "<BR>Redirect URL : <A HREF=" & sUrl & ">" & sUrl &
"</A>"
        'Response.redirect url ' go to Streamline eSolutions payment
selection page
    end if

end sub
'------------------------------------------------------------------------------
********** eg end ************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231719
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to