Search found 11 matches

by Preethi
Fri Feb 02, 2024 6:29 pm
Forum: YAJL-ILE
Topic: DATA-INTO to parse json response
Replies: 3
Views: 1618

Re: DATA-INTO to parse json response

Thank you for your help! This works
by Preethi
Fri Feb 02, 2024 9:19 am
Forum: YAJL-ILE
Topic: DATA-INTO to parse json response
Replies: 3
Views: 1618

DATA-INTO to parse json response

Hi All, RPG code is receiving json response after invoking a rest api. I created the below data structure and used data-into to parse the response json. Success response works fine but receiving error for failed response. Could some help me with the solution. * dcl-ds Data qualified; status char(25)...
by Preethi
Thu Jul 13, 2023 11:44 am
Forum: HTTPAPI
Topic: How to set Timeout seconds in http_url_post_stmf
Replies: 4
Views: 2458

Re: How to set Timeout seconds in http_url_post_stmf

Should we use any API to set timeout or directly give 120 seconds in the API call?
by Preethi
Thu Jul 13, 2023 8:40 am
Forum: HTTPAPI
Topic: How to set Timeout seconds in http_url_post_stmf
Replies: 4
Views: 2458

How to set Timeout seconds in http_url_post_stmf

Hi All, During auto-scaling, the Rest API application is down for 80 seconds. Our RPG code that is consuming this Rest API is ending in error during auto-scaling. I would like to setup timeout seconds (HTTP_TIMEOUT) as 120 seconds while posting request using http_url_post_stmf. I think the default i...
by Preethi
Wed May 10, 2023 5:51 pm
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

Re: DBCS data in JSON request to Rest API webservice

Your suggestion to include json as file worked... I will keep you posted if I see any other issue

Thank you so much!
by Preethi
Wed May 10, 2023 4:53 pm
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

Re: DBCS data in JSON request to Rest API webservice

"Would it be possible to use http_mfd_encoder_addstmf to add the JSON file directly from the IFS?"

The restapi accepts 1 file and 1 metadata in json format.
by Preethi
Wed May 10, 2023 4:05 pm
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

Re: DBCS data in JSON request to Rest API webservice

I am using http_mfd_encoder_addstmf to attach PDF. I am able to add the PDF in IFS file with CCSID 1208 and 819. I just tried to use IFS file with CCSID 1399 for Kanji characters to work but this corrupted the PDF file. IFS File with CCSID 1399 - JSON request with Kanji characters is populated but f...
by Preethi
Wed May 10, 2023 3:48 pm
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

Re: DBCS data in JSON request to Rest API webservice

Yes the DBCS characters are changed to EBCDIC and the Kanji characters are corrupt. I think the problem is with the procedure http_mfd_encoder_addvar_s where peValue is declared as character field P http_mfd_encoder_addvar_s... P B export D http_mfd_encoder_addvar_s... D PI 1N D peEncoder * value D ...
by Preethi
Mon May 08, 2023 3:14 am
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

Re: DBCS data in JSON request to Rest API webservice

Do you mean not to use ccsid 1208?
by Preethi
Sat May 06, 2023 10:41 am
Forum: HTTPAPI
Topic: DBCS data in JSON request to Rest API webservice
Replies: 7
Views: 474015

DBCS data in JSON request to Rest API webservice

Hi Scott, We are sending JSON request with DBCS data to Rest API webservice. This is not working and we are seeing junk data and this is not working. The same request and code is working fine for English characters. We are also sending PDF attachment with the request. The input IFS file has ccsid as...