How to consume external API using HTTP_GET in IBM i

preview_player
Показать описание
This video explains how to consume external API inside IBM i using Scott's HTTPAPI open source.
Link to Scott download:
Рекомендации по теме
Комментарии
Автор

Hi Yusuf,
While installing the LIBHTTP, I have followed the steps. But while writing this sample pgm, I get compilation error saying /copy include can’t be find.. when I check the object for httpapi_h not found. What to do ?

thambiran_sk
Автор

Hello. Thanks for the easy example. I've got an error executing the code: "Host name look up failed." Can you please help me?

MrTuzzo
Автор

Hi Yusuf.. When i go to create a webserver on PUB400, I get an error stating i don't have permission . I know you explained that we need to have *IOSYSCFG authority in order to do that . How to get this permission . Your webservice videos make a lot of sense but due to insufficient authority, I am not able to practice or I would say I am not able to see on my system how everything actually happens . Any tips that can help in having some hands on experience . Also, during interview we are asked questions like 'have u worked on latest technologies' . If i say i just have theoretical knowledge, no one takes it . It would be really great if you can help in any way in providing guidance so that we can practice the API related stuff on PUB400

gagandeep
Автор

Thank you... can we get output from GET as parameter list instead of ifs file ?

venkatshashank
Автор

how do we send header params on a post request?

ramstein
Автор

Thank you sir.
What if we want to take data from json into XML format?

priyanka
Автор

I want one program
Which policy is going to expired in two months from tody

jyotisahu
Автор

Hi Yusuf, when I'm trying this, getting below error...
Program basically failing at "callp http_stmf('GET': URL: IFS); "

Message . . . . : The call to HTTP_STMF ended in error (C G D F).
Cause . . . . . : RPG procedure WEBNEWRP1 in program SAHMAD1/WEBNEWRP1 at
statement 2934 called program or procedure HTTP_STMF, which ended in error.
If the name is *N, the call was a bound call by procedure pointer.
Recovery . . . : Check the job log for more

information on the cause of the
error and contact the person responsible for program maintenance.
Possible choices for replying to message . . . . . . . . . . . . . . . :
D -- Obtain RPG formatted dump.
S -- Obtain system dump.
G -- Continue processing at *GETIN.
C -- Cancel.
F -- Obtain full formatted dump.
Bottom
Press Enter to continue.


CALL SAHMAD1/WEBNEWRP1
Unlink debug file failed with errno=3027
(GSKit) Access to the key database is not allowed.
gsk_env_init: (GSKit) Access to the key database is not allowed.
Function check. CPF9897 unmonitored by WEBNEWRP1 at statement
instruction X'0000'.
The call to HTTP_STMF ended in error (C G D F).
The call to HTTP_STMF ended in error (C G D F).
Job 019736/SAHMAD/QPAD041446 changed by JOBMANAGER.
Job 019736/SAHMAD/QPAD041446 changed by JOBMANAGER.

jami
Автор

thanks for tutorial sir, can i request, tutorial for multithread prosess job in as400

tasyafilly
Автор

hi
can you pls make video on Ftp in ibm I

snehalb.