Search found 12 matches
- Tue Feb 25, 2025 4:15 pm
- Forum: HTTPAPI
- Topic: Open Source License Type
- Replies: 1
- Views: 17009
Open Source License Type
Do all the open source projects have the same open source license type of 2-Clause BSD License? Based on the license file in a couple of the projects (HTTPSAPI and Base64), the license text looks similar to a 2-Clause BSD License (https://opensource.org/license/bsd-2-clause). Perhaps as a documentat...
- Fri Feb 02, 2024 6:29 pm
- Forum: YAJL-ILE
- Topic: DATA-INTO to parse json response
- Replies: 3
- Views: 39082
Re: DATA-INTO to parse json response
Thank you for your help! This works
- Fri Feb 02, 2024 9:19 am
- Forum: YAJL-ILE
- Topic: DATA-INTO to parse json response
- Replies: 3
- Views: 39082
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)...
- Thu Jul 13, 2023 11:44 am
- Forum: HTTPAPI
- Topic: How to set Timeout seconds in http_url_post_stmf
- Replies: 4
- Views: 11592
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?
- Thu Jul 13, 2023 8:40 am
- Forum: HTTPAPI
- Topic: How to set Timeout seconds in http_url_post_stmf
- Replies: 4
- Views: 11592
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...
- Wed May 10, 2023 5:51 pm
- Forum: HTTPAPI
- Topic: DBCS data in JSON request to Rest API webservice
- Replies: 7
- Views: 498590
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!
Thank you so much!
- Wed May 10, 2023 4:53 pm
- Forum: HTTPAPI
- Topic: DBCS data in JSON request to Rest API webservice
- Replies: 7
- Views: 498590
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.
The restapi accepts 1 file and 1 metadata in json format.
- Wed May 10, 2023 4:05 pm
- Forum: HTTPAPI
- Topic: DBCS data in JSON request to Rest API webservice
- Replies: 7
- Views: 498590
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...
- Wed May 10, 2023 3:48 pm
- Forum: HTTPAPI
- Topic: DBCS data in JSON request to Rest API webservice
- Replies: 7
- Views: 498590
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 ...
- Mon May 08, 2023 3:14 am
- Forum: HTTPAPI
- Topic: DBCS data in JSON request to Rest API webservice
- Replies: 7
- Views: 498590
Re: DBCS data in JSON request to Rest API webservice
Do you mean not to use ccsid 1208?