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



You could - but that just adds a layer and degrades performance - unless the caller is on a different system - if you are just calling it locally then ...

You need to forget that you are using the Service Program to provide a web service and just call the routines like you would any other in a Service Program

1) Create a Binding Directory which references the name of the Service Program

2) Create a prototype source to define the interfaces to the routine in the Service Program

3) In the regular RPG program add a Ctl-Opt BndDir('BNDDIRNAME'); at the start of the RPG program.

4) Also add a /Copy to reference the prototypes

That's pretty much it.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Dec 30, 2018, at 10:42 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

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
______________________________________________________________________
--
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: https://amazon.midrange.com


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.