Re: PCML Call reality check

Pete Helgren <[email protected]> Fri, 8 Oct 2021 11:12:31 -0500
Newsgroups gmane.comp.lang.as400.java
Message-ID <[email protected]>
Alan,

In this particular case, there is one, and only one system API I need 
access to.  I have a Java servlet that needs to call this system API, 
which is written in C (I presume).  Could I write the wrapper in RPG and 
then use cgi to get access to it?  Perhaps. This started out with a 
simple need: Call this one API from the Java servlet that needs it.  It 
just ended up being more complex than I had anticipated.

Had the whole thing been an RPG solution, I would have taken a different 
approach.  Maybe I still will.  If you have an example of exposing a 
system API as a REST service, let me know.  REST services are easy to 
call from Java.

Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java
AWS Certified Cloud Practitioner
Microsoft Certified: Azure Fundamentals
Twitter - Sys_i_Geek  IBM_i_Geek

On 10/8/2021 9:47 AM, Alan Campin wrote:
> Just curious, with the coming of Rest Services and how simple it makes
> executing logic on the IBM i, is PCML obsolete? Why would you use PCML over
> using a Rest Service?
-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com