ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Web service from RPG using HTTP API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web service from RPG using HTTP API

    Hi,



    I have to connect to a web service from my RPG program. I have to send some search criteria in XML format and get back the data from the web server.For this I found a service program called HTTP API but I do not know how to use it in my program, that is, the exact syntax that goes with it.



    Has anyone used HTTP API or any other service program that does the same (i.e. connecting to web services)?

    If anyone has used HTTP API can he/she briefly outline the procedure to be followed to fulfill the objective of connecting to the web service?



    HTTP API is a *SRVPGM that

    - Sends data to web servers in an RPG program

    - Receives data from web servers in RPG

    - Encodes and decodes the data that you need to send or have received

    - Is designed to be integrated into your applications

    - Is open source and free of charge


    Any pointers about how to use HTTP API would be very useful.


    Subhashree.

  • #2
    Re: Web service from RPG using HTTP API

    Scott Klement has some source code you can download that uses this API.

    Michael
    "Time passes, but sometimes it beats the <crap> out of you as it goes."

    Comment

    Working...
    X