× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Which is exactly the solution I have been working on. The web dudes or
dudettes make up an XML or JSON or Text string request, invoke a class
written in whatever. That invokes a service program on the IBM i that reads
the XML(The best) or whatever and does the work and writes back XML or
whatever with a response. GUI person does their thing and the RPG people do
their thing.

In between is a socket server written in C, multi-threaded that spawns RPG
jobs that do the actual work. All messages are streamed back and forth so
can be of any complexity and since the communication is via socket web
program can be anywhere. On the PC or on the IBM i.

The question about how to do it comes down to how you want to talk to the
IBM i. Do you want to make a connection, stay connected and talk to one RPG
session or do you want to connect and disconnect each time and have the
work coming in to go to whatever RPG job that is available?

On Wed, Dec 13, 2017 at 1:32 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Yes. Actually, I had your book and it helped me. Thank you. It
disappeared in one upheaval or another.

The issue, for me, is that I want to approach the data from the web
developer's side. Use a web developer's tool set, not an IBM programmer's
tool set. I am suspicious that what I want is a way to provide the data as
a web service? Not sure of the terminology ... I believe I want to
"consume a web service"? At this point I am over my head so I suspect my
terminology is bad.

In other words, I want to be able to say to an RPG programmer "You provide
the data this way:" and to the web dudes & dudettes "Here is the data you
requested, ready to use:"



On 12/13/2017 3:18 PM, Bradley Stone wrote:

Are you asking how to write an RPG program that reads from a DB and spits
out the information on the web page?

If so, I wrote a few books about that a few years ago... eRPG was the
title. :)

Now I'd prefer to use CGIDEV2 or eRPG SDK. But the basis is still the
same.

Your subfile program that exists now is easily converted into a CGI
program
to spit that data out to a web page. I have tons of examples at:
http://erpgsdk.bvstools.com/demo/

Also, www.fieldexit.com has a ton of examples too. They do all sorts of
things from reading from a DB, to using web services to get information.

CGIDEV2 I'm sure has a lot of examples as well.


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #16 <https://www.bvstools.com/mailtool.html>: No
external
"helper" PC system required. 100% IBM i native!


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.