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



Absolutely!  Used both articles!  The whole exercise of providing web services was a struggle for me but I got there.  Can do the _R__ of CRUD nut haven't dared do the C_UD yet.  Got a couple of web sites set up on the i, the JavaScript, HTML, and CSS all working, and generally quite happy with all of it.

Now that that is done I realize that I want to be able to consume the REST web service with an RPGLE program, or use the same service program in my RPGLE program and I have no idea where to start, other than to ask questions here on midrange.com.


On 12/30/2018 10:24 PM, Alan Shore wrote:
Hi Booth
Scott Klement provides a write up on using service programs for IWS and how to test them

https://scottklement.com/presentations/Providing%20RPG%20Web%20Services%20on%20IBM%20i.pdf

This article by Susan Gardner and Jon Paris shows how to test using a web browser

http://ibmsystemsmag.com/ibmi/developer/general/using_iws/

I am also investigationg this under v7r3, but need a ptf to be loaded - which is to take place on our development system, the weekend on January 12/13 2019


Good luck

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Sunday, December 30, 2018 10:43 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: [EXTERNAL] Re: calling a program v using a SRVPGM

exactly.  So, how do I get that same response with RPGLE?  Do I use the web service URL in the RPGLE program in some way?


On 12/30/2018 8:07 PM, Don Brown wrote:
Booth, when you set up the web service in IWS you select either program or
service program and then if service program you specify the procedure to
be called.

SRVPGM01 is the container if you like that has one or more procedures.

The web-service is the calling program so as you have in your test
program(s) you execute a service program procedure so does your call to
the web-service.

So if you had SRVPGM01 with two procedures: getTempCelcius and
getTempFarenheight

You would have two web-services created in IWS and these services your
requesting program would call.

Cheers


Don Brown


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.