PHP Web Rpg 101

(click to open)

Quick Page Table of Contents

Scanning…

PHP / RPG web

This example continues the previous section DVD search example, but MVC elements will be swapped out to create web services.

Tutorials

  • REST i5 101 - i5 REST web service front end to RPG SRVPGM (i5_program_call)
  • SOAP i5 101 - i5 SOAP web service front end to RPG SRVPGM (i5_program_call)

REST i5 101

Instead of HTML user input we will create a callable web service using REST techniques. We will replace the PHP view and control elements of the previous examples with a REST client calling a REST service which will be using the same old RPG back-end model.

  • What is REST?
  • What is POX?
  • How does REST and SOAP compare?
  • Is REST or SOAP better?
  • How do I turn my *SRVPGM into a REST service?
  • How do I make a REST server using the i5 toolkit to my RPG SRVPGM?
  • How can SimpleXML help my REST Server?
  • How do I make a client to call a REST service?
  • How can simplexml_load_file call a REST service?

SOAP i5 101

Instead of HTML user input we will create a callable web service using SOAP techniques. We will replace the PHP view and control elements of the previous examples with a SOAP client calling a SOAP service which will be using the same old RPG back-end model.

  • Is REST or SOAP better?
  • Does PHP actively use WSDL at runtime?
  • How do I turn my *SRVPGM into a SOAP service?
  • How do I make a SOAP server using the i5 toolkit to my RPG SRVPGM?
  • How do I make a client to call a SOAP service?