You may not need web services. In fact, if you are running your web pages in an Apache server on the IBMi, then attempting to use a web service to connect your web pages to RPG programs might actually be causing problems.
If you are running your web app in the Apache server on the IBMi, then you don’t need web services to connect your web pages to resources such as RPG programs or DB2 files. You can use straightforward CGI (e.g., the CGIDEV2 package). I’m sure several people on this list could give you great advice about learning how to use CGI with Apache and RPG programs.
Similarly, if run your web app in the Zend Server on the IBMi, then you can use PHP code and the “PHP Toolkit for i” to connect your web pages to resources such as RPG programs or DB2 files. The folks at RogueWave (formerly Zend) can help you with this. They offer beginner-level training specifically for the IBMi. People on this list could help you with PHP as well.
The same goes for Node.JS. If you run your web app in a Node.JS server on the IBMi, then you don’t need web services to connect your web pages to RPG programs or DB2 files. IBM supplies a “Toolkit for i” and a “DB2 for i CLI” database connector to make these connections. I know people on this list can help you with Node.JS, though I also recommend the Midrange.com Open Source email list for Node.JS help (
https://lists.midrange.com/mailman/listinfo/opensource). There are also consulting companies (e.g., Krengel Technology and Profound Logic) that offer beginner level training for getting started with Node.JS on the IBMi.
The same also goes for Java web apps…etc etc
Web services are really useful for connecting applications running on different servers that may have been developed with very different technologies. For example, my shop is learning to use web services to connect .NET applications running on Windows with COBOL programs and DB2 files on our IBMi. However, if you run your web app in an HTTP server on the IBMi (e.g., Apache, Node.JS, Zend Server, WebSphere, Tomcat), then you don’t need web services to connect your web pages to RPG programs or DB2 files. There are tools that run on the IBMi to help you do that.
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 11:24 PM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] [EXTERNAL] Simple, really simple, example of web services
I have worked with IWS, with Scott's tutorials and examples, with JSON,
and made several other attempts. Nothing, so far, has actually worked.
All the individual pieces seem to work but the whole doesn't.
I can move JSON data from & to an IFS file with a web page and/or with
RPG green screen without trouble. The HTML and javascript seems to be OK.
I am looking for HELLOWORLD skill level examples.
On 10/11/2018 10:50 PM, Kelly Cookson wrote:
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.
--
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.