Forgot to add trace file
-----Özgün İleti-----
Kimden: Nihat Ezer
Tarih: Tuesday, November 17, 2020 9:16 PM
Kime: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Konu: SetError() #73: CCSID conversion failed
Greetings,
Attempting to run the following, i have seen that response is not seen properly as it contains special characters with Unicode decimal codes such as ı ç etc, and gives error message, "SetError() Ö73: CCSID conversion failed: The value specified for the argument is not correct."
What am i doing wrong or this could be due to something wrong on the other side, can you please advise ?
dcl-s peIstekCevap varchar(9999);
dcl-ds receiveBuffer qualified;
size int(10) inz;
data char(32767) inz;
end-ds;
http_setCCSIDs(1208:1026);
loReturnCode = http_url_post_raw(glUrl
: %addr(peIstekCevap)+2
: %len(%trim(peIstekCevap))
: FD
: %paddr(asws_httpVeriyiAl)
: HTTP_TIMEOUT
: *omit
: 'text/xml; charset=UTF-8'
: '"
http://xxx.com/CoreIns/aMethod"'
http_xlatedyn(receiveBuffer.size: %addr(receiveBuffer.data) : TO_EBCDIC: pEbcdic);
--
Thank you,
Nihat
HTTPAPI Ver 1.40 released 2019-08-15
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: xxx.xxx
DNS server found: 172.25.2.14
DNS server found: 172.25.2.15
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST / HTTP/1.1
Host: asdpservicesprep
User-Agent: http-api/1.39
Content-Type: text/xml; charset=UTF-8
SOAPAction: "
http://as.com/CoreIns/PolicyLifeCycle/PolicyServicing/SbmOVMPolicyService/Service/V1/zeyilSil"
Content-Length: 1707
senddoc(): entered
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="
http://as.com/CoreIns/PolicyLifeCycle/PolicyServicing/SbmOVMPolicyService/Service/V1"><soapenv:Header><wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-b38c291a-a777-4bfa-8877-d33d1cf16ba1"><wsse:Username>xxx</wsse:Username><wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxx</wsse:Password></wsse:UsernameToken></wsse:Security><p:consumerContext xsi:type="p:IntWebAppContextType" xmlns:p="
http://as.com/Technical/EA/Header/Schema/V1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"><channelCode>iWebApp</channelCode><clientRequestTimeStamp>2020-10-06T06:14:55</clientRequestTimeStamp><consumerCode>lgc</consumerCode><ipAddress>127.0.0.1</ipAddress><lang>tr</lang><messageGroupId>e7c52457-3223-4835-aa6f-be95560b167f</messageGroupId><messageId>c269760d-192e-4152-8d66-bf6bd5155250</messageId><organizationUnitCode>10012</organizationUnitCode><serverInstanceId>app1</serverInstanceId><sessionId>sessionId</sessionId></p:consumerContext></soapenv:Header><soapenv:Body><v1:zeyilSil><zeyilSil><kontrolMu>H</kontrolMu><otorizasyonKod>12345678901234567890123456789012</otorizasyonKod><sirketUrunKodu>906</sirketUrunKodu><zeyilAnahtari><acenteNo>321974</acenteNo><policeNo>100926520</policeNo><sirketKodu>007</sirketKodu><yenilemeNo>0</yenilemeNo><zeyilNo>18</zeyilNo></zeyilAnahtari></zeyilSil></v1:zeyilSil></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
X-Backside-Transport: FAIL FAIL,FAIL FAIL
Connection: Keep-Alive
Transfer-Encoding: chunked
Date: Tue, 17 Nov 2020 17:28:10 GMT
Content-Type: text/xml; charset=UTF-8
Server-Timing: intid;desc=0ab8a53db4cf5c87
X-ORACLE-DMS-ECID: 72f9235e-f367-4110-8fa2-3b2fae50a6a7-00004c4e
X-ORACLE-DMS-RID: 0
X-Global-Transaction-ID: e257c0fc5fb4082a667190e3
SetError() Ã?13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
27
chunk size = 39
get_chunk_size returned 39
calling comm_blockread
<?xml version="1.0" encoding="UTF-8"?>
got 39
comm_blockread returned 39
got 2
get_chunk_size(): entered
6ab
chunk size = 1707
get_chunk_size returned 1707
calling comm_blockread
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><p:consumerContext xsi:type="p:IntWebAppContextType" xmlns:v1="
http://as.com/CoreIns/PolicyLifeCycle/PolicyServicing/SbmOVMPolicyService/Service/V1" xmlns:p="
http://as.com/Technical/EA/Header/Schema/V1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"><channelCode>iWebApp</channelCode><clientRequestTimeStamp>2020-10-06T06:14:55</clientRequestTimeStamp><consumerCode>lgc</consumerCode><ipAddress>127.0.0.1</ipAddress><lang>tr</lang><messageGroupId>e7c52457-3223-4835-aa6f-be95560b167f</messageGroupId><messageId>c269760d-192e-4152-8d66-bf6bd5155250</messageId><organizationUnitCode>10012</organizationUnitCode><serverInstanceId>app1</serverInstanceId><sessionId>sessionId</sessionId></p:consumerContext><as:serviceInvocationInfo xmlns:as="
http://as.com/Technical/EA/Header/Schema/V1"><serviceInvocationUUID>1e989fed-00de-4937-b503-fcc057e29167</serviceInvocationUUID><requestTimestamp>2020-11-17T20:28:10.010Z</requestTimestamp><serviceNamespace>"
http://as.com/CoreIns/PolicyLifeCycle/PolicyServicing/SbmOVMPolicyService/Service/V1</serviceNamespace><serviceName>CoreIns/PolicyLifeCycle/PolicyServicing/SbmOVMPolicyService/Service/V1</serviceName><operationName>zeyilSil</operationName></as:serviceInvocationInfo></soapenv:Header><S:Body>
<soapenv:Fault xmlns:asf="
http://as.com/xslt/extensions" xmlns:dp="
http://www.datapower.com/extensions" xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:ahs="
http://ahs.tramer.org.tr" xmlns:v1="
http://as.com/CoreIns/PolicyLifeCycle/PolicyServicing/SbmMaturityService/Service/V1" xmlns:as="
http://as.com/Techn
got 1707
comm_blockread returned 1707
got 2
get_chunk_size(): entered
3dc
chunk size = 988
get_chunk_size returned 988
calling comm_blockread
ical/EA/Header/Schema/V1">
<faultcode>soapenv:Server</faultcode>
<faultstring>TRAMER-SERVICE</faultstring>
<detail>
<v1:BusinessFault>
<code>SYS-SBM-00007</code>
<screenCode>99999</screenCode>
<description>otorizasyonKod otorizasyon kodu tanımlı değil. Otorizasyona ihtiyaç olmadığı durumlar için bu alanı boş bırakınız.</description>
<detail>otorizasyonKod otorizasyon kodu tanımlı değil. Otorizasyona ihtiyaç olmadığı durumlar için bu alanı boş bırakınız.</detail>
<SIID>1e989fed-00de-4937-b503-fcc057e29167</SIID>
<actor/>
<source>TRAMER-SERVICE-</source>
<parameters>TRAMER-SERVICE-SYS-SBM-00007:otorizasyonKod otorizasyon kodu tanımlı değil. Otorizasyona ihtiyaç olmadığı durumlar için bu alanı boş bırakınız.</parameters></v1:BusinessFault></detail></soapenv:Fault></S:Body></S:Envelope>
got 988
comm_blockread returned 988
got 2
get_chunk_size(): entered
0
chunk size = 0
get_chunk_size returned 0
SetError() Ã?13: HTTP/1.1 500 Internal Server Error
http_close(): entered
HTTPAPI Ver 1.40 released 2019-08-15
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R2M0
SetError() Ã?73: CCSID conversion failed: The value specified for the argument is not correct.
As an Amazon Associate we earn from qualifying purchases.