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

R: CCSID problem?????



Thank you, Scott!
I tryed to set the character set to ISO-8859-1, but the WS has received ? ? ? instead of ç à è.
I attached the log.

Is it possible that the WS accepts only UTF-8?

Must I use the "HTTP_SetCCSIDs(xxx: 0)" before of "rc = http_url_post_xml(  ...)"??

When I call the WS, the request is the same that I see in senddoc() tag of the log file???

Best regards!!

-------Stefano Busolo-------
Servizio Produzione Software plain ERP Commercio - Industria
mailto: bu@xxxxxxxxxxxx
_______________________________________________________________________________
Gruppo ASI - Via della Croce Rossa, 42 - 35129 Padova
http://www.plain.it - mailto:info@xxxxxxxxxxxx  Tel. +39 049 8070030 - Fax +39 049 8078433




Questa e-mail è da considerare strettamente riservata ai destinatari specificati. Se il messaggio
è stato ricevuto per errore, si prega avvisare il mittente e poi di cancellare il messaggio.
_______________________________________________________________________________
E-mail sottoposta a scansione antivirus con Scanmail TrendMicro ( http://www.antivirus.com ).


-----Messaggio originale-----
Da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Per conto di Scott Klement
Inviato: lunedì 4 aprile 2011 19:38
A: HTTPAPI and FTPAPI Projects
Oggetto: Re: CCSID problem?????

hi Stefano,

You are telling HTTPAPI to translate your data from EBCDIC to CCSID 819
(which is ISO-8859-1).  But you are telling the web service that your
data is in ISO-8859-15, which is a different character set than ISO-8859-1.


On 4/4/2011 7:31 AM, Stefano Busolo wrote:
>
>     Hi Scott!
>     I use HTTP API to communicate with a WS.
>
>
>     The API works very well but I have a problem with some special
>     characters (à ò è ù).
>
>
>     I sended  this XML request
>
>     <tem:CorporateName2>adesso ç è à ù ì ò</tem:CorporateName2>
>
>
>     but the WebService has receive this
>
>     <tem:CorporateName2>adesso ? ? ? ? ? ?</tem:CorporateName2>
>
>
>
>     Note the ? ? ? ? instead of ç è à ù
>
>
>     Is this a CCSID problem??
>
>     How can I send an XML without any type of char conversion?
>
>
>     I attached a log of my XML request
>
>
>     Best regard
>
>
>
>     -------Stefano Busolo-------
>
>     Servizio Produzione Software plain ERP Commercio - Industria
>
>     mailto: [1]bu@xxxxxxxxxxxx
>
>     ______________________________________________________________________
>     _________
>
>     Gruppo ASI - Via della Croce Rossa, 42 - 35129 Padova
>
>     [2]http://www.plain.it - [3]mailto:info@xxxxxxxxxxxx  Tel. +39 049
>     8070030 - Fax +39 049 8078433
>
>
>     [4]IBM_BP_w
>
>     [5]MS_GCP_w
>
>
>     Questa e-mail è da considerare strettamente riservata ai destinatari
>     specificati. Se il messaggio
>
>     è stato ricevuto per errore, si prega avvisare il mittente e poi di
>     cancellare il messaggio.
>
>     ______________________________________________________________________
>     _________
>
>     E-mail sottoposta a scansione antivirus con Scanmail TrendMicro (
>     [6]http://www.antivirus.com ).
>
> References
>
>     1. mailto:bu@xxxxxxxxxxxx
>     2. http://www.plain.it/
>     3. mailto:info@xxxxxxxxxxxx
>     4. http://www.plain.it/portalev2/a00_Base/default.aspx?sCD_Pagina=30374
>     5. http://www.plain.it/portalev2/a00_Base/default.aspx?sCD_Pagina=30374
>     6. http://www.antivirus.com/
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> 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
-----------------------------------------------------------------------
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V6R1M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: DOMAIN
DNS server found: 192.168.0.7
DNS server found: 192.168.0.220
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /portaleV4/WebServices/plainWS.Accounts/Importer.asmx HTTP/1.1
Host: mq
User-Agent: http-api/1.23
Content-Type: text/xml
Expect: 100-continue
Content-Length: 32767


recvresp(): entered
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.1
Date: Tue, 05 Apr 2011 07:01:42 GMT
X-Powered-By: ASP.NET


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="ISO-8859-1"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; xmlns:tem="http://tempuri.org/";><soap:Body><tem:SaveAccount xmlns:tem="http://tempuri.org/";><tem:account><tem:AccountType>C</tem:AccountType><tem:Company></tem:Company><tem:AccountID>002278</tem:AccountID><tem:Cancelled>false</tem:Cancelled><tem:CancelledBy></tem:CancelledBy><tem:CancelledDate xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><tem:SuspendedDate xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><tem:CorporateName>Herbert Achermann AG</tem:CorporateName><tem:Address><tem:Street>Poststrasse, 25</tem:Street><tem:City>Wohlen</tem:City><tem:ZipCode>5610</tem:ZipCode><tem:ProvinceCode></tem:ProvinceCode><tem:CountryCode>CH</tem:CountryCode></tem:Address><tem:FiscalCode>00988740395</tem:FiscalCode><tem:VATNumber>00988740395</tem:VATNumber><tem:PhoneNumber></tem:PhoneNumber><tem:Fax></tem:Fax><tem:EmailAddress></tem:EmailAddress><tem:Language></tem:Language><tem:LastModified>2011-04-05T09:00:08.948000</tem:LastModified><tem:CorporateName2>adesso ç è à ù ì ò</tem:CorporateName2><tem:PhoneNumber2></tem:PhoneNumber2><tem:PhoneNumber3></tem:PhoneNumber3><tem:Fax2></tem:Fax2><tem:EmailAddress2></tem:EmailAddress2><tem:EmailAddressHR></tem:EmailAddressHR><tem:EmailAddressBuyer></tem:EmailAddressBuyer><tem:EmailAddressSales></tem:EmailAddressSales><tem:URL1></tem:URL1><tem:URL2></tem:URL2><tem:Currency></tem:Currency><tem:VATType></tem:VATType><tem:PaymentType>016</tem:PaymentType><tem:TradeDiscount></tem:TradeDiscount><tem:PriceRise></tem:PriceRise><tem:VATItem></tem:VATItem><tem:CIN></tem:CIN><tem:ABI>0</tem:ABI><tem:CAB>0</tem:CAB><tem:IBAN></tem:IBAN><tem:BankAccount></tem:BankAccount><tem:ISO>CH</tem:ISO><tem:INCOTerms></tem:INCOTerms><tem:DeliveryTerms></tem:DeliveryTerms><tem:PriceList>1</tem:PriceList><tem:CarriageType>03</tem:CarriageType><tem:Carrier>001</tem:Carrier><tem:AcceptsEMail>false</tem:AcceptsEMail><tem:AcceptsFax>false</tem:AcceptsFax><tem:AcceptsMail xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><tem:AcceptsSMS xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><tem:PrivacyTerms></tem:PrivacyTerms><tem:PortalService></tem:PortalService><tem:CATService></tem:CATService><tem:PortalServiceDate></tem:PortalServiceDate><tem:CATServiceDate></tem:CATServiceDate><tem:LegacyCode></tem:LegacyCode></tem:account></tem:SaveAccount></soap:Body></soap:Envelope>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
recvresp(): entered
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Tue, 05 Apr 2011 07:01:42 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 295


SetError() #13: HTTP/1.1 200 OK
recvdoc parms: identity 295
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><SaveAccountResponse xmlns="http://tempuri.org/"; /></soap:Body></soap:Envelope>
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------