No, all you need is an Apache HTTP server configured to allow access to
your program (using ScriptAlias most likely). Just like you would for a
CGI program.

Then you build your json and spit it out to StdOut with YAJL like I've
mentioned a few times already.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #22 <https://www.bvstools.com/mailtool.html>: Cost
starting at under $300 a year per partition!

On Wed, Aug 29, 2018 at 3:09 PM Booth Martin <booth@xxxxxxxxxxxx> wrote:

In debug, my SQLRPGLE program has this row:

QtmhWrStout( bigCharVar : length: err );

and bigCharVar has the correct data.

My understanding at the moment is that I need a web service server with
a named & deployed rest service. That server needs to be assigned a
port and has to be running. Then, if I point any modern browser at that
port + /name-of-deployed-service, I should get the raw JSON data showing
on my screen?

This is all with Scott's YAJL


On 8/28/2018 10:37 AM, Bradley Stone wrote:
yajl_writeStdout(): Copy YAJL generator buffer to Apache via
stdout (with headers)

This should be all you need. If you want to debug the JSON it's making,
you can write it out to the IFS as well.

Don't try to make it too difficult.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #12<https://www.bvstools.com/mailtool.html>: Both Text
and HTML email support

--
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

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2019 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].