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



Alan,

Can you explain RTNPARAM?   I'm having a hard time getting my head around how that fits into this context.

-SK


On 12/11/2018 11:23 AM, Alan Shore wrote:
Hi everyone
Before I forget - we are on V7r3

I have been asked to investigate whether IWS (Integrated Web Services) is feasible to pass data from the iSeries to another system/software

I have done some googling and there is quite a lot of information out there - but of course - NOTHING that fits EXACTLY what you want

Anyway - I have found both of these very helpful
Creating Web Services With Integrated Web Services
http://ibmsystemsmag.com/ibmi/developer/general/using_iws/
Providing RPG Web Services on IBM i
https://scottklement.com/presentations/Providing%20RPG%20Web%20Services%20on%20IBM%20i.pdf

I decided to create a simple proof of concept service program
Using the code
RTNPARAM
And
PgmInfo(*PCML:*MODULE)

One procedure to return a string, for the customer name and address
2 input parameters
Division number - packed(2:0)
Customer number - packed(9:0)

I have tested the service program on the iSeries - and it works, giving me the expected results
I am now attempting to deploy this as a new REST service
On step 3, where I specify the URI path template, I have written
/{incstdiv:\d+}/{incstnbr:\d+}
Showing 2 parameters as part of the path name
Its on Step 5 that I am having a problem
The 2 parameters are specified and when I choose *PATH_PARAM as the input source (both of them) and choosing the applicable identifier
INCSTDIV
INCSTNBR
I press Next
And the second parameter identifier changes to INCSTDIV with the error
Error: ZUI_53159: Value incstdiv is not valid.
Being displayed at the bottom of the screen

I have gone back to step 3 and changed the identifiers name
CUSTDIV
CUSTNBR

Same problem happens

I have googled ZUI_53159 but nothis is displayed

I am hoping that someone will recognize what I am doing wrong
As always - ALL replies gratefully accepted



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



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.