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

Re: [Ftpapi] At my wits end



It will need to be ASCII/UTF/etc before you encode it. Translate it before you base64 encode it.

On Tue, 2020-11-17 at 06:09 -0800, Braden Lincoln wrote:
Hoping someone can help.  I have overcome all the connectivity issues with this SOAP web service I am connecting to.  And I can even send the file payload.  But the encoding of the data is just wrong, and I can't seem to find the magic solution.

I've tried sending the raw data as a string.  Server rejects it immediately with http 500 error.  It suggested it was not "properly base64 encoded data".  So, I downloaded and installed the BASE64 encoding service program from Scott.  I encoded the string, and it went through, http 200, we thought we were home free. But the data on the receiving server was garbled - apparently not encoded in a way that they could decode it correctly.  I thought maybe it was an EBCDIC/ascii issue, so i decided to write the encoded string to the IFS using code page 819, then read it back in and send it.  Same result.

I've tried every which way I can think of (which is apparently just short of enough).  I need some expert advice on how to get this string to the receiver correctly.

Attached are the program source, the http log (where the request string can be seen), and the garbled mess from the receiving server.  Hoping for some sage advice.  Thanks in advance. 


  Kevin  Bucknum
                   Senior Programmer Analyst
                   MEDDATA / MEDTRON
                   120 Innwood Drive
                   Covington LA 70433
                   Local: 985-893-2550
                   Toll Free: 877-893-2550
                 https://www.medtronsoftware.com



CONFIDENTIALITY NOTICE

This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged.  This information is intended only for the use of the individual or entity named above.  The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled.  If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED.  If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi