Now let us see whether the request message is properly encoded to utf-8. Copy the following statements into the web service procedure of your WS_SRV module: * * Debug: dump request message D count s 10i 0 D buffer s 32767a D fd s 10i 0 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /free Insert the following statements: // Make SOAP response header available to SOAPMessage_Envelope g_pRespSoapHeader = *NULL; <TODO> // Open input stream in order to dump the message hInpStream = MessageContext_InputStream_open(hMsgCtx); // if 1=2; fd = -1; count = MessageContext_InputStream_read( hInpStream: %addr(buffer): %size(buffer)); dow (count > 0); if (fd = -1); fd = open('/home/raddatz/wsdl2rpg/WSDLI41001_request.xml' : O_CREAT+O_EXCL+O_SHARE_RDONLY+O_WRONLY+O_CCSID : S_IRWXU+S_IRWXG+S_IRWXO : getPostCcsid()); endif; callp write(fd: %addr(buffer): count); count = MessageContext_InputStream_read( hInpStream: %addr(buffer): %size(buffer)); enddo; if (fd <> -1); callp close(fd); endif; // Re-Open input stream in order to send the message reOpenInputStream(hMsgCtx: hInpStream); </TODO> // eXpat: Post request and parse response url = QuoteofTheDaySoap_Endpoint_get(); (See also the attached statements.) That will dump the request message into an utf-8 encoded stream file. The data is the same that http_url_post_raw2() gets. Change '/home/raddatz/wsdl2rpg/WSDLI41001_request.xml' to a more reasonable file name. Double check the content of the output file! Thomas. -----Ursprüngliche Nachricht----- Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von larsenvalverde@xxxxxxxxx Gesendet: Dienstag, 3. November 2015 10:32 An: Ftpapi Betreff: Re: Posting data in CCSID 1026 not well received by server in UFT-8 Thomas, I have checked the value of i_tns_xxx.blz as you ask me and is correct... Well there are two bytes before the string with the value in hex 00 1C... (Not always are the dame two bytes)... The value of post_ccsid is always 1208 and I do not use setpostccsid... I still have the same problem... Christian ----------------------------------------------------------------------- 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.
Attachment:
wsdl2rpg_dump_reqMsg.zip
Description: wsdl2rpg_dump_reqMsg.zip
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------