Coding in RPG (IBM i/AS400). Communicating with a REST SERVER with HTTPAPI

preview_player
Показать описание
In this example video, I'd like to show you a simple example of how to communicate with a REST SERVER from our RPG programs without using SQL.
In this case, using HTTPAPI.
For the example, I use the HTTPAPI functions:
- HTTP_REQ
- HTTP_DEBUG
- HTTP_XPROC

Please, let me know what you think about it. Leave your comments below.
Don't forget to subscribe!

#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #as400 #common #HTTPAPI #restservices #restservers

0:00 Introduction
0:18 Starting using VSCode and Code for IBMi extension
0:35 Talking about HTTPAPI from Scott Klement
1:05 Initial source code for the example
1:30 Explaining about the binding directory used and the prototypes copied
1:55 Explaining the code: GET, POST and PUT
2:11 The HTTP_REQ procedure, and its parameters
4:40 Testing the program in the green screen
5:27 What if I need a LOG of the communications made? (HTTP_DEBUG)
6:33 What if I need to add a HEADER to my request? (HTTP_XPROC)
9:46 Testing the program in the green screen (after using HTTP_DEBUG and HTTP_XPROC)
10:20 Opening the LOG created in the IFS
11:25 Final commentaries and ending
Рекомендации по теме
Комментарии
Автор

Thanks Christian for sharing valuable information

sudarsanimmadi
Автор

All your videos are very useful!
Thanks a lot!

josemanuelmunozmanzano
Автор

Good morning, thank you very much for sharing your knowledge, I have a problem, if you could guide me, I have to add a certificate for a post service for token recovery, how is this certificate addition done?

gabrielreyes
Автор

Thank you for sharing this great information.

Anyway, how to pass username and password on httpapi as part of the authentication?

jessyvillante
Автор

Thanks. How is thr performance of HttpApi?

anson
Автор

Hi, thanks for the video, you will can make a video about how install HTTPAPI in AS400?, Will be very useful!

xdroids
Автор

Yes, I've done that once or twice.

darkbagel
Автор

Hi thanks so much for you tutorial. Very clean. Is it possible to find the sample code show in a github link?

MrTuzzo
Автор

how to install httpapi i can't create lib LIBHTTP on pub400

Jimi-bxxf