One thing... "It doesn't work" doesn't provide a lot of information. :)
Any why would you want to stay out of the barrooms? Sounds counter
intuitive. :)

Have you checked the HTTP server error/access logs? The HTTP server job
logs? Maybe the program is crashing for some reason.

Have you tried debugging your program to see if it's being executed (or
checked the last use date?)

Debugging an RPG CGI program:
https://www.fieldexit.com/forum/display?threadid=48


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #21 <https://www.bvstools.com/mailtool.html>: Superior
Product Support - BVSTools has proven over the past 20+ years and working
with thousands of customers all over the world and many different SMTP
servers to have superior support for our products. We feel functionality is
important, but just as important is making sure that emails and phone calls
for support are answered as quickly as possible. During working hours
you'll often get a response in less than 30 minutes.

On Tue, Aug 28, 2018 at 9:29 AM Kevin Bucknum <Kevin@xxxxxxxxxxxxxxxxxxx>
wrote:

I would say step back and get one of the examples that walk you fully
through the process, and then come back to your program. Maybe by getting
an example working, something will click as to what you are missing with
your version.

https://www.common.org/ibm/rpg-and-yajl/
http://timunderwood.net/100MEDIA/ServeJSON.pdf





Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Booth Martin
Sent: Monday, August 27, 2018 9:26 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: RPG & webservice

OK, friends, this s where I prove I am an idiot. But it can't be helped
I guess.

I have done those 3 bullet items. I can't make it work.

(I am doing all this because I really like doing it and it keeps my mind
active
and keeps me out of the barrooms and brothels. Whether I ever get it
working isn't the point. From that angle, this is a resounding success.
It's
meeting my goal. )


On 8/27/2018 5:01 PM, Bradley Stone wrote:
Booth.

If you want simple, stick with the Apache server. I've said this a
few times in this thread already and offered examples.

If you're using YAJL, it has a function to write the JSON to stdout..
so it's actually VERY simple.

1. Create a web instance
2. Change your program to write the JSON to std out 3. Execute the
program from a browser to test.

Super simple as it sounds like you have the JSON building already done.


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #6<https://www.bvstools.com/mailtool.html>: Easily
send group emails with Distribution Lists

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

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