|
Brad,
Our attempt to parse JSON is failing before getting to the CGI program. It
is throwing the following message in the job log. We aren't sure how to
troubleshoot. We are compiling the module, then creating the program and
immediately trying to test. Any thoughts or pointers(No pun intended) would
be greatly appreciated.
40 04/26/22 09:27:28.852866 AiTOCInit 000438 QZSRCGI
QHTTPSVR *STMT
From user . . . . . . . . . : QTMHHTP1
To module . . . . . . . . . : ZSRVCGI
To procedure . . . . . . . : BigSwitch
Statement . . . . . . . . . : 3
Message . . . . : Program import not found.
Cause . . . . . : The calling program SHPMNTWEB refers to a procedure
or
data export from service program YAJLR4 which does not exist. The
calling
program refers to export-ID X'00000022', the service program defines
only
X'00000020' exports. Recovery . . . : Recreate the calling program.
Technical description . . . . . . . . : The service program has been
changed in an incompatible manner since the time the calling program
was
created and thus bound to the service program. Recreate the calling
program.
Alvin
Alvin Strasburger
Printgear Sportswear
Phone 803-744-2310
Toll Free 800-763-7763
mailto:alvins@xxxxxxxxxxxxx
www.printgear.com
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Brad
Stone
Sent: Monday, April 11, 2022 5:40 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Help receiving JSON into CGI program
The data should be decoded when read in using YAJL.
Here a link to a series I did a while back:
https://www.fieldexit.com/forum/display?threadid=197
On Mon, Apr 11, 2022 at 3:56 PM Alvin Strasburger <alvins@xxxxxxxxxxxxx>
wrote:
We have been providing some web services by receiving simple notseveral years.
encoded comma delimited lists in CGI programs and responding with
Scott Klement's version of YAJL. This has been working well for us for
--
Now we need to do a few more complicated things including receiving
names and addresses with spaces and punctuation. We found in testing
that these fields come to our RPG program encoded. We thought that if
the data was sent as a JSON payload that we could then process it.
However, we don't really understand how to get the decoded JSON
payload from the web to our RPG program We have done significant
research, but are not really web programmers. Can someone offer us a
solution or maybe share a configuration and/or a program where a JSON
payload is successfully passed to RPG from CGI?
Thanks,
Alvin
Alvin Strasburger
Printgear Sportswear
Phone 803-744-2310
Toll Free 800-763-7763
<mailto:alvins@xxxxxxxxxxxxx> mailto:alvins@xxxxxxxxxxxxx
<http://www.printgear.com/> www.printgear.com
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please
take a moment to review the archives at
https://archive.midrange.com/web400.
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.