Yep, still getting this error and eWay say they haven't changed
anything.
I wrote the XML response from eWay to a text file so that I could see
what was returned. It was in fact not XML at all, it was just the
words "Connection Failed" so it's hardly surprising CF could not
parse it.
eWay say they have no clue as to why this happens or where it comes
from. Still no closer to solving it.
Cheers
ian
***********************
emerald city-mmp+d
phone: 02 4782 3562
mobile: 0418 23 7790
PO Box 687
Katoomba NSW 2780
***********************
On 24/01/2008, at 4:41 PM, Taco Fleur wrote:
Hi,
are you still getting this error?
Because someone I know is getting the same problem, and everything
definately worked okiedokie before for months now. Has eWay changed
anything?
On 1/23/08, Ian Marshall <[EMAIL PROTECTED]> wrote:
Hi Everyone,
I have an application that has been working quite nicely for over a
year now that allows users to buy tickets for a music festival.
But now I am getting an error when XML is returned from the payment
gateway we use for processing credit card transactions.
This is the error message: "An error occured while Parsing an XML
document. Content is not allowed in prolog."
This does not happen with every transaction only about one in five.
The payment gateway hasn't changed anything, nor have I — it just
started throwing this error.
This is the code where the error occurs, specifically the line
"XMLobj = XmlParse(cfhttp.fileContent);":
<cfscript>
/* parse the response from eway (which is an XML document), this will
convert it into an XML object for easy access to its values */
XMLobj = XmlParse(cfhttp.fileContent);
/* set eway vars from the response XML object */
ewayTrxnStatus = XMLobj.ewayResponse.ewayTrxnStatus.XmlText;
ewayTrxnNumber = XMLobj.ewayResponse.ewayTrxnNumber.XmlText;
ewayTrxnReference = XMLobj.ewayResponse.ewayTrxnReference.XmlText;
ewayTrxnOption1 = XMLobj.ewayResponse.ewayTrxnOption1.XmlText;
ewayTrxnOption2 = XMLobj.ewayResponse.ewayTrxnOption2.XmlText;
ewayTrxnOption3 = XMLobj.ewayResponse.ewayTrxnOption3.XmlText;
ewayAuthCode = XMLobj.ewayResponse.ewayAuthCode.XmlText;
ewayReturnAmount = XMLobj.ewayResponse.ewayReturnAmount.XmlText;
ewayTrxnError = XMLobj.ewayResponse.ewayTrxnError.XmlText;
</cfscript>
any ideas?
cheers
Ian
www.clickfind.com.au
blog: http://australian-search-engine.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---