[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem Character conversion
Gilles,
Sorry for the late reply. I did not notice that the question is related
to WSDL2RPG.
Just for your information: Is it correct, that the default CCSID of
your i5 is 37 and that you did not call
BvBizTalkGenericWsSoap_Port_setPostCcsid()? Given that both assumptions
are true, HTTP_SetCCSIDs(1208:37) has no effect, because getPostCcsid()
should return the default value of 1208 and HTTP_EBCDIC is 0 which
means "use the job CCSID".
The debug log shows that you send the right value to the web service
but receive a wrong character. Although I am sure that the debug log
shows the original data as it is sent from and received on the i5, I
suggest to redirect the response to a separate stream file using
BvBizTalkGenericWsSoap_Redirectresponse_toStmf(). I am pretty sure that
we will see "ALMER??A" again, which implies that the problem is on the
server side.
At least you send the correct value of x'c38d' for "Í" and I cannot see
what is wrong with your request message.
Thomas.
ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 24.05.2013 09:08:10:
> Von: gilles.renne@xxxxxxxxxxxxxxxxx
> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
> Datum: 24.05.2013 09:18
> Betreff: Problem Character conversion
> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>
>
>
> hi
>
> I try to send characters Í which is spanish character
> this character is in CCSID 37
>
> but when i send it to an external web service it retrieve ??
>
> see the http_debug
> (See attached file: httpapi_debug-txt.zip)
> Send :<tns:Input>AM 04 ALMERÍA .</tns:Input>
> Receive : <Output>AM 04 ALMER??A .</Output>
>
> the character is good
>
> i try to change ccsid with HTTP_setccsids(1208:37) here
> // to the encoding of the SOAP envelope
> //HTTP_SetCCSIDs(getPostCcsid(): HTTP_EBCDIC);
> HTTP_SetCCSIDs(1208:37);
>
> // Create and open data source to store the request
> message
> hDataSource = ManagedMemoryDataSource_new
> (1024*1024*4); // 4 MB
>
> contentType = 'text/xml';
> but is is not working
>
> do i need to translate the characters before sending it ??
> how using http_xlate function ?
>
>
> regards
>
> Gilles
> This message contains confidential information. To know more, please
> click on the following link: [1]http://disclaimer.bureauveritas.com
> [Anhang "httpapi_debug-txt.zip" gelöscht von Thomas Raddatz/OBI/DE]
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [2]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.
References
1. http://disclaimer.bureauveritas.com/
2. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------