INCOMING

About INCOMING

Train your IBM i System to listen to incoming webservices from the Internet

Module Content

Train your IBM i System to listen to incoming webservices from the Internet

Simple RPG Example of a Webservice

4 Lessons

Let's start with coding the most simple example of a webservice that we can think of. This will respond to any external webservice calls using IBM i internal webserver (IWS)

Copy Paste the RPG code, compile it and lets get ready to test this webservice on the IBM i Power System.

Create a basic IBM i Web Server ready for standard IBM webservices

Download and Test with a Webservice Testing Tool - SOAPUI SoapUI is a popular tool for testing web services, especially SOAP and REST APIs. It allows you to create, run, and automate functional and load tests, as well as mock web services.

More Advanced RPG Code Examples

4 Lessons

Some simple SQLRPGLE code that will run as an IBMi webservice... this is called from an external system, coming into our IBM i system via the Integrated Web Server. The webservice will list the JBA System21 Stockrooms and return them for the user that was passed...

Some simple SQLRPGLE code that will run as an IBM i webservice... this will receive an internet JSON string and save it to an IFS location.

This reads the JSON from the IFS – decodes it using Y.A.J.L and reports on time taken to perform decode. Writing an RPG program to read JSON using YAJL is actually pretty straightforward — I hope this code example helps!

This reads the JSON from the IFS – decodes it using JSON_TABLE and reports on time taken to perform decode.

Ready to learn?
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>