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

AW: Posting data in CCSID 1026 not well received by server in UTF-8



WSDL2RPG and HTTPAPI assume that the data to be send is in job ccsid. Then WSDL2RPG converts the data to utf-8 (ccsid 1208) before it is sent to the server. The default for HTTPAPI is 819, but that does not matter, because WSDL2RPG uses http_url_post_raw2() and hence must do the character translation on its own.

Since the data is assumed to be in job ccsid, it might be a problem when reading from a Turkish file (1026) to a job running with a Spanish CCSID (284), because you most likely lose special Turkish characters.

What version of WSDL2RPG do you use?

What xml type is the element that contains the invalid data?

Did you already debug the generated stub in order to check the data passed to the Marshaller, e.g. Marshaller_toStringV6()?

Thomas.

-----Ursprüngliche Nachricht-----
Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von larsenvalverde@xxxxxxxxx
Gesendet: Samstag, 31. Oktober 2015 12:50
An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Posting data in CCSID 1026 not well received by server in UTF-8

Hello all.

I am working with WSDL2RPG to post data to a web service, and all is working well.

The problem is that one of that data is stored in a file with CCSID 1026 (turkish), and when I add this data to the structure that I use to send it to the web service, there is something wrong.

All the data in the log is well formed, because if I use the XML in the log, with SoapUI, the server receive the data well. But, if I use the structure made with WSDL2RPG (and then HTTPAPI), the characters received in the server are not in the correct CCSID.

Any suggestions?

I have try to send it using CHGJOB CCSID(1026), and changing the character “ for Ü  ,  and with the CCSID 284 that I use in my system. But it does not work….  I am completely sick looking for a solution. Please help.


Thanks :)
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------