Link to home
Start Free TrialLog in
Avatar of modul8or
modul8or

asked on

Instantiating a Web Request or Calling an external program from RPG on AS400

I am asking this question on behalf of my team. If you need more specifics about the AS400 or RPG please let me know.

I am a Windows/ Java Developer who works on a team that includes AS400/ RPG Programmers. We would very much like to learn how to invoke a web service/ web request from within the AS400 using the RPG Programming language.

Right now we are able to launch an Internet Explorer Session and pass the url (which includes some query parameters). This gives us the benefit of providing a command in our local business system GUI to launch an IE window and perform some additional logic via a web service and display it to the user. The down side is that its one way and we would like to be able to, in our rpg programs, call a web service/ web request and get some results back and continue on with the program.

I am hoping there are some options to do this sort of RPC. Whether its via a web service or calling a JAVA or Windows app that acts as a middle man for the web service or actually instantiating a DLL in RPG and performing some logic.

I apologize if I am all over the board. This is a pretty simple task in .NET or JAVA and I am pretty new to the AS400 RPG environment.

Thanks for your time
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Hi modul8or,

What about create a Java routine on the AS/400 and compile it, so that there is a native (java) object that can be called by an RPG program.

Regards,
Murph
Avatar of modul8or
modul8or

ASKER

You wouldnt happen to know how to call the Java object from within RPG? I guess thats where we are stuck, calling something like that from within RPG. Definitly a solution we were thinking about!
Thanks,
Paul
ASKER CERTIFIED SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Both of the responses led me in the perfect direction for a solution. Thank you guys!