[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTPAPI problem with characters in the XML



   Scott,


   I am processing credit cards with Chase Paymentech and sending an XML
   request.  I am getting a few responses from Chase that they are unable
   to find the <Request> element of the XML.  I have one program creating
   the XML request and sporadically I get a bad response.  I sent the
   problem to Chase Paymentech support and they are unable to give a
   definitive answer.  Unfortunately I am unable to duplicate the
   problem.


   The answer I got from Chase is that they did see a special character
   between the MIME header and the XML request.  I am able to see some
   characters between the MIME and the request, but I do not know how they
   are getting there.


   I posted part of the HTTP_Debug below and you can see just before the
   <?xml version="1.0" encoding="UTF-8"?> you can see a character that
   should not be there.  I start sending at the <?


   Do you know why the extra characters are being added?  In my testing I
   did notice this character changes and it's not always the same.


   The actual response from Chase Support.

   "We are unable to procure a detailed log on previously run
   transactions. Without being able to actively reproduce the issue so we
   may get a live log on our end; the issue will be hard to pinpoint. What
   we can tell is your MIME header came in just fine on those error
   transactions. We also logged a few recent transactions and noticed that
   between the MIME header and the actual transaction request there was an
   invalid character of "¬". For example: ¬<?xml version="1.0"
   encoding="UTF-8"?> <Request>. If this character was injected at any
   point within the start of the xml tag it could cause the <Request> tag
   to not be found. Our recommendation would be to review your code to see
   why it might be sending that character, or if in certain instances it
   might be injecting any other unsupported characters into the request."



   Protocol Used: TLS Version 1.2

   http_persist_post(): entered

   http_persist_req(POST) entered.

   http_long_ParseURL(): entered

   http_long_ParseURL(): entered

   do_oper(POST): entered

   There are 0 cookies in the cache

   POST /authorize HTTP/1.1

   Host: orbitalvar1.chasepaymentech.com

   User-Agent: http-api/1.31

   Content-Type: application/PTI68

   Content-Length: 976

   MIME-Version: 1.0

   Content-transfer-encoding: text

   Request-number: 1

   Document-type: Request



   senddoc(): entered
   _______________________

   }<?xml version="1.0" encoding="UTF-8"?>

   <Request>

   <NewOrder>


   The paste looks different from the actual debug file so I added the
   picture.


   [cid:image001.png@01D1E0FB.41B13280]


   Thanks,

   Randy

   CONFIDENTIALITY NOTICE: This electronic message transmission contains
   information from this organization, which may be confidential or
   privileged. The information is intended for the sole use of the
   individual or entity named above. If you are not the intended
   recipient, be aware that any disclosure, copying, distribution, or use
   of the contents of this information is prohibited. If you have received
   this email in error, please notify the sender immediately and delete
   the original message. Neither the sender nor the company for which he
   or she works accepts any liability for any damage caused by any virus
   transmitted by this email.

PNG image

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------