Alas, I don’t have the droids you are looking for, or the detailed example you seek. I am a little curious about what exactly you want to learn.
* Are you looking for detailed information to develop a simple web API that uses AJAX (or some other JavaScript approach) to call CGI programs on the IBMi?
* Are you looking for information about how to develop a RESTful web service that happen to use CGI programs on IBMi to handle the server side processing of that service?
* Are you more interested in learning how to code web services on the IBMi from scratch, or would you be more interested in learning to use IBM’s Integrated Web Services (IWS)—a kind of productivity tool to develop web services on the IBMi that can use ILE programs (RPG, CL, COBOL) to handle the server side processing for those services?
* Are you more interested in web services as such, or are you more interested in highly dynamic web pages? If it’s highly dynamic web pages you seek, then you might consider learning about a JavaScript library called React.JS or about a JavaScript framework like Angular.JS, Vue, or Bootstrap. Just beware this route can be a pretty deep rabbit hole for people used to RPG (or, like myself, COBOL).
I assume you are not interested in SOAP web services given the scenario you described. A SOAP web service for something so simple would be overkill, a lot of complexity for something so simple. However, IWS might make it easier to develop a “simple” SOAP web service, since IWS is doing a lot of the lifting for you.
And, as always, there are third party vendors out there waiting to help you develop web services on the IBMi, if that’s in your budget. Some vendors offer education and training without necessarily having to license any products. Again, if that kind of training is in your budget.
Thanks,
Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<
http://www.dotfoods.com>
From: WEB400 <web400-bounces@xxxxxxxxxxxx> On Behalf Of Booth Martin
Sent: Thursday, October 11, 2018 9:14 PM
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: [EXTERNAL] [WEB400] Simple, really simple, example of web services
Web services have been around for a while now. It looks to me like a
lot of the information, tutorials, wizards, and examples that are
available have become stale, superseded, or otherwise abandoned. There
also seems to be several different approaches with various pluses & minuses.
I want to write a web service that is about as basic as it can be and
still legitimately deserve to be called a web service. Seeing it in
action will, I believe, help me understand what all is happening.
To that end I have a web page where someone can enter a date and I have
an Apache server set up for serving the response. The web page HTML &
javascript will send that date as a request to the iSeries Apache web
server where an RPG program will calculate the Day-of-the-Week (Sunday
through Saturday) and return that answer to the requesting web page and
be displayed to the user.
Any and all comments, suggestions, pointers and references will be
appreciated; especially when geared toward the novice.
--
Booth Martin
www.martinvt.com<
http://www.martinvt.com>
(870)576-9371
(802)461-5349
A sine curve goes off into infinity or at least to the end of the
blackboard.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/web400<
https://lists.midrange.com/mailman/listinfo/web400>
or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/web400<
https://archive.midrange.com/web400>.
As an Amazon Associate we earn from qualifying purchases.