Building Listener API to get the incoming data to IFS

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Locked
rmahalinga
Posts: 1
Joined: Wed Jul 17, 2024 9:36 pm

Building Listener API to get the incoming data to IFS

Post by rmahalinga »

Hi, I am new to the API programs, I have created a RPGLE program to listen the server and save the file into the IFS folder. I am testing from POSTMAN. I got 500 error. the getenv(REQUEST_METHOD) and getenv(REQUEST_URI) ends up with error.

Error in postman:
ERROR [LISTENHDLR][LISTENHDLR]: Invocation of program failed.
CEE9901: Application error. MCH3601 unmonitored by LISTENHDLR at statement 0000000240, instruction X'0000'.

Also in postman, do we need to input data as payload, or can we pass as URL?

Help!
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Building Listener API to get the incoming data to IFS

Post by Scott Klement »

Your question is not related to HTTPAPI.

You are writing an RPG program, presumably to use in conjunction with the IBM HTTP Server (Powered By Apache) based on your description. You are not using HTTPAPI.

Please post your message in the RPG programming forum, and describe your setup better. The info you provided lacks any detail that we might use to help you.

I will close this thread as it is not related to HTTPAPI.
Locked