Radu,
This error is not coming from HTTPAPI. HTTPAPI doesn't know anything about your XML, it simply sends what you tell it to send. It is the web services server that is sending you this message.
-SK
On 2/12/17 7:11 AM, Radu Botescu wrote:
Hello,
I have a problem when using http_url_post_stmf with special characters.
My project is to call a webservice and get back a shipping label.In the area reserved to the shipping address, in my request, I could have special characters depends on the shipping country(é, Ü, etc).
If in my request I send:<name><![CDATA[AAA BBB Ü]]></name>
I received this error:"<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ " xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "><soapenv:Header/><soapenv:Body> <soapenv:Fault><faultcode> Server</faultcode>< faultstring>Internal Error</faultstring></soapenv: Fault></soapenv:Body></ soapenv:Envelope>"
If I remove the Ü ==> no error, I receive the right answer.
If I use http_url_post_xml with the exactly the same xml (the one with Ü) ==> no error, I do receive the right answer (but the answer is bigger than 65k...).
What I do in my pgm:http_XmlStripCRLF(*ON);http_xmlReturnPtr(*OFF);HTTP_setCCSIDs(1208: 0)
rc = http_url_post_stmf(URLADR: %trim(PM_XMLIN): %trim(PM_XMLOUT): HTTP_TIMEOUT: HTTP_USERAGENT: 'text/xml;charset=UTF-8': '"'+'"' );
I'm using http-api/1.21.
Any ideea?
Thank you in advance,Radu
_______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/ mailman/listinfo/ftpapi
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
_______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi