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



Thank you Nadir.  That worked.

It forced me to name the service the same as the 10-char UPPER case RPG program.  That may well be a matter of unapplied PTFs.



On 11/21/2018 9:15 AM, Nadir Amra wrote:
Just for clarification, a regular expression is not necessary. So what
are you specifying for URI path template for the resource?

There is 2 places where it can be specified. One covers all the APIs and
is shown when you specify resource name. The other is specific to the API
when specify REST information for the API.

So what are you specifying exactly?

There is a sample program in QSYSDIR/QIWSSAMPLE that all can use. It
converts temp from Fahrenheit to Celsius. So on the resource panel, I
specify:


Resource name: QIWSSAMPLE
Service description: QIWSSAMPLE
URI path template: /{temp}

Then on Next panel TEMPIN is the input parameter and TEMPOUT is the output
parameter.

On the panel (Step 5 - Specify resource method information), I take the
defaults. However, for the Input parameter mappings table at bottom of
panel, there is a selection box for "Input source". If you select
*PATH_PARAM, the identifier selection box will be filled with available
template variables. Since there is only one, you are done.

Once you deploy, the path you would use would look something like:

http://host:10010/QIWSSAMPLE/234

And you should get a response back.


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.