Realized that i wrongly trimmed the rest of the receiveBuffer.data, the error code appears no longer However, i keep on getting responses that are not seen properly as it contains special characters with Unicode decimal codes such as ı ç etc Here is the code with last update: dcl-s pEbcdic pointer;
dcl-s ebcdic like(receiveBuffer.data) based(pEbcdic); dcl-s sizeEbcdic int(10) inz;
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"' sizeEbcdic = http_xlatedyn(receiveBuffer.size: %addr(receiveBuffer.data) : TO_EBCDIC: pEbcdic);
receiveBuffer.data = "" 1: sizeEbcdic); receiveBuffer.size = sizeEbcdic; dcl-proc asws_httpVeriyiAl;
dcl-pi asws_httpVeriyiAl int(10);
peFD int(10) value;
peData char(32767) options(*varsize);
peLen int(10) value;
end-pi;
dcl-s inBuffer like(receiveBuffer.data);
dcl-s size int(10);
inBuffer = %subst(peData: 1: peLen);
if (receiveBuffer.size + peLen > %len(receiveBuffer.data)); size = %len(receiveBuffer.data) - receiveBuffer.size;
else;
size = peLen;
endif;
%subst(receiveBuffer.data: receiveBuffer.size + 1: size) = %subst(inBuffer: 1: size);
receiveBuffer.size = receiveBuffer.size + size;
return size;
end-proc asws_httpVeriyiAl; -- Cheers, Nihat Kimden: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx>
Yerine Scott Klement DİKKAT: Bu e-posta kurum dışından gönderilmiştir. Zararlı dosya veya bağlantılar (link) içerebilir. Kaynağından emin olmadığınız dosyaları/bağlantıları (link) açarken
veya e-postayı cevaplarken dikkatli olunuz.
According to the manual this error code means "The conversion stopped because of an incomplete character or shift state sequence at the end of the input buffer." Is it possible that the receiveBuffer.size is incorrect? Or, whatever process you are using to write the data to the receiveBuffer is not writing it correctly? Does it work better if you use http_req()? On 11/18/2020 12:10 AM, Nihat Ezer wrote:
|
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: Wed, 18 Nov 2020 18:08:26 GMT Content-Type: text/xml; charset=UTF-8 Server-Timing: intid;desc=f4cac8f98862f30b X-ORACLE-DMS-ECID: 72f9235e-f367-4110-8fa2-3b2fae50a6a7-00006345 X-ORACLE-DMS-RID: 0 X-Global-Transaction-ID: e257c0fc5fb5631a69cde2e3 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>cb07493d-59a7-4cac-97c9-fcc057e2fb0e</serviceInvocationUUID><requestTimestamp>2020-11-18T21:08:26.026Z</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>cb07493d-59a7-4cac-97c9-fcc057e2fb0e</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
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi