umm i might be a long shot but what is the url encoding of the Form ? i do recall that Allaire re-built the CFHTTP tag to use multipart/form-data, while the 4.x release and below used the application/x-www-form-urlencoded format.
would this be an effect ? i dont think it is but might be worth a check for sanity purposes ____________________________ Satachi Internet Development Unit 2 7a Plough Yard London EC2A 3LP Tel: 0870 787 3610 Tech Support: 0906 960 7800 Fax: 0709 221 2636 www.satachi.com _____________________________ -----Original Message----- From: Martin Gill [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 11:51 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] URGENT: Please Help - CFHTTP differences between CF 4.5 and CF5 The strange thing is that the XML is valid when I send it from a cold fusion 4.5 server. I think that it may be that the data is being posted differently. Before I was getting the same error when I had mistakenly set the TYPE Field of the CFHttpParam command to XML instead of FORMFIELD. Sorry, I should have mentioned this in my previous email. The XML file is as follows; the code is read in and the bracket variables substituted with values in the page. I've had to replace some data with ????s but you get the idea <?xml version="1.0" encoding="UTF-8"?> <Request> <Authentication> <password>???????</password> <client>????????</client> </Authentication> <Transaction> <TxnDetails> <merchantreference>????????????????????</merchantreference> <amount currency='GBP'>2.00</amount> </TxnDetails> <CardTxn> <method>auth</method> <Card> <pan>4936000000000000001</pan> <expirydate>03/2004</expirydate> </Card> </CardTxn> </Transaction> </Request> -----Original Message----- From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 11:34 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] URGENT: Please Help - CFHTTP differences between CF 4.5 and CF5 Looks like the XML you're sending isn't being accepted, not the actual httpparam. -----Original Message----- From: Martin Gill [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 11:26 To: [EMAIL PROTECTED] Subject: [ cf-dev ] URGENT: Please Help - CFHTTP differences between CF 4.5 and CF5 Hi all, Does any one know of any differences between the CfhttpParam tag in version 4.5 and version 5 of Cold Fusion. I have the following code; <CFHTTP URL="#Attributes.ServerName#" METHOD="POST" PORT="#Attributes.ServerPort#"> <CFHTTPPARAM TYPE="FORMFIELD" NAME="Request" VALUE="#Trim(XMLDataString)#"> </CFHTTP> When I run the code and it submits the data to Datacash, in 5, I get <?xml version="1.0" encoding="UTF-8"?> <Response> <reason>Invalid XML</reason> <status>60</status> <information>Parse XML failed - syntax error at line 1, column 0, byte 0</information> </Response> Whereas In version 4.5 I get valid output. <?xml version="1.0" encoding="UTF-8"?> <Response> <reason>ACCEPTED</reason> <merchantreference>0409024504917</merchantreference> <CardTxn> <issuer>NatWest (including Ulster Bank)</issuer> <country>United Kingdom</country> <authcode>???????</authcode> <card_scheme>Switch</card_scheme> </CardTxn> <status>1</status> <mode>TEST</mode> <datacash_reference>??????????????????</datacash_reference> <time>1031134593</time> </Response> Any help would really be appreciated because the client is expecting a complete system by the end of today. Thanks. Martin L. Gill, MSc - Head Programmer For & on Behalf of UniTech (The Universal Information Technology Group Ltd) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ URL: http://www.unitech.net Email: [EMAIL PROTECTED] UniTech House, 25 Bernard Street, Leith, Edinburgh, EH6 6SH Tel: +(44) 0131 472 5555 DDI: +(44) 0131 472 5560 Fax: +(44) 0131 472 5556 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
