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



Jon Paris,
stsOK is not in MONSTATCDS .

info.rpgStatus = stsOK; <<<< should be stsNoError ???
RNF7503: Expression contains an operand that is not defined.
RNF7030: The name or indicator STSOK is not defined.


Thanks

John Slanina

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Tuesday, November 08, 2016 4:58 PM
To: Rpg400 Rpg400-L
Subject: Re: Open Access - Json Template

Yes I know Scott but I figured he could probably work it out from the examples that do exist.

I should probably also have referenced your YAJL stuff but figured he’d figure that out.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Nov 8, 2016, at 4:34 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote:

Jon,

None of my examples for web services use YAJL, unfortunately. The YAJL presentation covers YAJL, but not really web services :-) Its a chicken-and-egg problem, I don't have time to teach both in one session, and I can never assume people in the YAJL session are already familiar with web services, or the people in the web services session are familiar with YAJL.

What I really should do (if I had time and wasn't so burned out) is write an article about it and put it on my web site. Sigh.

-SK



On 11/8/2016 3:13 PM, Jon Paris wrote:
Since you are _supplying_ the service (as opposed to consuming it) there really would be little point in using OA. Think of it as a way for an RPG program to easily access functionality via conventional opcodes that would otherwise require API calls (such as YAJL, CGIDEV2, or HTTPAPI).

In other words, to make it easier for less enlightened programmers to easily use the wonderful features that you supply.

Assuming that you don’t want to get into using PHP or node.js or … anything except RPG in this project then your simple choices are a CGI type approach as mentioned earlier or the built-in wizards for the app server. Some of Scott’s examples in his seminar on web services show you how to do this booth ways. The biggest difference is that with the wizard you don’t really get to control the complete response, with a CGI approach you’re in complete control. Whether that matters or not only you can decide.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Nov 8, 2016, at 3:41 PM, Slanina, John <jslanina@xxxxxxxxxx> wrote:

Jon,
Before, I could not get nested arrays working with web services wizard. Now I got it working.
So now we are down to which way is the fastest and easiest to maintain. We have 50 API and add about 3 to 4 a month.

You kind of talked me out on using your open access :)

John Slanina


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Jon Paris
Sent: Tuesday, November 08, 2016 12:26 PM
To: Rpg400 Rpg400-L
Subject: Re: Open Access - Json Template

John,

My OA template is generic - there is really nothing web service specific that I could add.

I have published one example that consumes a web service - it uses Scott’s HTTPAPI under the covers to handle the web service interaction. That is also referenced in my OA session.

Consider for a moment that one way to supply a web service is via HTTP. In my session I showed how a handler can be written that (in my case) interfaces with CGIDEV2 to handle the web side. The same principal could be applied to web services.

You don’t say what kind of web services you intend to supply (REST vs SOAP for example) - don’t forget that the web services wizard can also be used to provide these services from conventional RPG programs.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Nov 8, 2016, at 8:27 AM, Slanina, John <jslanina@xxxxxxxxxx> wrote:

Jon Paris,
I am working on a proof of concept to handle to move all our JSON
Web service API's to the IBM I, Do you have a template program for open access to handle JSON over Http? I took you class at the summit, But not see good example for handling Web service Traffic.
I will using Scotts JSON API's.


Thanks
John Slanina
slaninaj@xxxxxxxxxx
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

As an Amazon Associate we earn from qualifying purchases.

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