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