-
1. Re: XMLParse error with Paymentech
BKBK Nov 1, 2014 4:03 AM (in response to mcbwestcoast)A Byte Order Mark (BOM) probably got in the way. Ben Nadel shows one way to deal with a BOM.
You could replace <cfset myXMLDocument = XmlParse(#objGet.filecontent#)> with the 3 lines,
<!--- Remove extraneous space --->
<cfset trimmedContent = trim(objGet.filecontent)>
<!--- Remove BOM --->
<cfset filteredContent =replace(trimmedContent,chr(65279),"","all")>
<cfset myXMLDocument = XmlParse(filteredContent)>
-
2. Re: XMLParse error with Paymentech
mcbwestcoast Nov 1, 2014 8:27 AM (in response to mcbwestcoast)It turns out it was "an obscure bug in Coldfusion runtime and security provider libraries that manifests itself for some SSL certificates" - these three lines of code will save you a lot of time and bother. Check this solution out if you've recently updated your SSL certificate and you get parsing errors.
<cfset objSecurity = createObject("java", "java.security.Security") />
<cfset storeProvider = objSecurity.getProvider("JsafeJCE") />
<cfset objSecurity.removeProvider("JsafeJCE") />
Put these immediately before making the CFHTTP call to the secure server.

