I have done a little more digging and found an example as follows but it
throws an error, anyone out there offer any clues?

<cfset xmlHTTP = CreateObject("com", "Msxml2.XMLHTTP")>
 <cfscript>
            xmlHttp.open("POST", "
https://secure-test.streamline-esolutions.com/jsp/merchant/xml/paymentService.jsp";,
false);

res = xmlHttp.responseText;

 </cfscript>

But I get an error

 "An exception occurred when accessing a Com object field.

The cause of this exception was that: AutomationException: 0x80004005 -
Unspecified error in 'msxml3.dll'."

I assume I need to install the dll somewhere, any pointers on where this
should go AND am I heading in the right direction?

---------------------------------------------

On 09/02/06, Paul & Kathryn <[EMAIL PROTECTED]> wrote:
>
> 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 ************
>
>


--
Paul & Kathy


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231722
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