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



Hi all,

@Jean-Marc, Marco is absolutely right. Defining all the parameters will
help your job to be more compliant with and take advantge of the most
recent developing techniques.

Anyway, if you just want to give it a try, I will outline how I did it as
soon as I can connect to the system.



Il giorno mer 18 ago 2021 alle ore 09:35 Jean-Marc DUVAL via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> ha scritto:

Hi Lucia,

It's a very interesting method !
Have you a sample code to do that ?

-----Message d'origine-----
De : RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> De la part de Maria
Lucia Stoppa
Envoyé : mardi 17 août 2021 21:14
À : RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Objet : Re: web services parameters limitation



ATTENTION : Ce message provient d'une source EXTERNE. Veuillez n'ouvrir
les liens ou pièces jointes que si vous êtes sûr de l'expéditeur.



Hi Jean-Marc,

You have all the keys in the answers preceding mine.
I just add my personal way of doing it as I don't like to be obliged of
recreated the iws the moment I need a new parameter. To solve this
limitation I declare a fix number of general parameters, but one of them is
called "data" and is a stringified JSON string and another one is
"dataLength". This way there is virtually no limit to the numbers of
parameters as each API call knows what is expected in the "data" DS.

Hope it helps.

Lucia

Il Mar 17 Ago 2021, 20:40 Marco Facchinetti <marco.facchinetti@xxxxxxxxx>
ha scritto:

Ds is the way but even if you use a ds, IWS will create the code to
handle all the fields included in the DS. At 7.4 the limit is around
6/7.000 fields. The problem is Java not IWS.

HTH
--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco


Il giorno mar 17 ago 2021 alle ore 18:09 Jon Paris <
jon.paris@xxxxxxxxxxxxxx> ha scritto:

A DS is the way to go for sure - the smaller the number of parms the
better as with regular calls.

The limit on parms is documented in the IWS manual as follows:

"A procedure in an ILE service program (*SRVPGM) that is to be
externalized as a web service can have a maximum of 7 parameters. An
ILE program (*PGM) can have a maximum of 32 parameters on IBM i 6.1
and 255 parameters on IBM i 7.1 and subsequent releases".

The limit may have increased since then - although I would never
want to go above 3 or 4 anyway so I have never felt the need to
check. The
service
program limitation is a little restrictive - they should probably
raise that if only to accommodate existing procedures that have more
than that.
I _think_ the limits arise from the Java tooling rather than IWS
itself.
David might know the answer to that.


Jon Paris

On Aug 17, 2021, at 9:57 AM, Jean-Marc DUVAL via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Alan,

That’s what I am going to test… I will return my result.


De : Alan Shore <ashore@xxxxxxxx>
Envoyé : mardi 17 août 2021 15:55
À : Jean-Marc DUVAL <jean-marc.duval@xxxxxxxxxxx> Cc : RPG
programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx> Objet : RE: web
services parameters limitation



ATTENTION : Ce message provient d'une source EXTERNE. Veuillez
n'ouvrir
les liens ou pièces jointes que si vous êtes sûr de l'expéditeur.


Hi Jean-Marc
Instead of having so many parameters, why not use a data structure
instead – and pass that ONE data structure as the parameter

Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image001.png@01D79380.8511EB40]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx<mailto:
ASHORE@xxxxxxxxxxxxxxxxxxxx>

‘If you're going through hell, keep going.’
Winston Churchill

From: Jean-Marc DUVAL [mailto:jean-marc.duval@xxxxxxxxxxx]
Sent: Tuesday, August 17, 2021 9:52 AM
To: Alan Shore <ashore@xxxxxxxx<mailto:ashore@xxxxxxxx>>
Cc: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:
rpg400-l@xxxxxxxxxxxxxxxxxx>>
Subject: [EXTERNAL] RE: web services parameters limitation

Alan,

Yes i did, but don’t find answers, that why I ask it to the very
expert
members of the list 😉

De : Alan Shore <ashore@xxxxxxxx<mailto:ashore@xxxxxxxx>>
Envoyé : mardi 17 août 2021 15:36
À : Jean-Marc DUVAL <jean-marc.duval@xxxxxxxxxxx<mailto:
jean-marc.duval@xxxxxxxxxxx>>
Objet : RE: web services parameters limitation



ATTENTION : Ce message provient d'une source EXTERNE. Veuillez
n'ouvrir
les liens ou pièces jointes que si vous êtes sûr de l'expéditeur.


Okay
However – I have since blown some of the cob webs from my mind,
and I
believe there IS a limitation that I seem to remember has been
increased
in
V7r4
But again – I cannot find what I am looking for Have you tried a
google search?
I did a quick search but couldn’t really find anything – but it
might
be
what I was searching for
“as400 iws parameter limitation”

Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image005.png@01D79380.84F95A30]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx<mailto:
ASHORE@xxxxxxxxxxxxxxxxxxxx>

‘If you're going through hell, keep going.’
Winston Churchill

From: Jean-Marc DUVAL [mailto:jean-marc.duval@xxxxxxxxxxx]
Sent: Tuesday, August 17, 2021 9:31 AM
To: Alan Shore <ashore@xxxxxxxx<mailto:ashore@xxxxxxxx>>
Subject: [EXTERNAL] RE: web services parameters limitation

Alan,

Thanks for you reply.
I have REST web service with PUT method that have 16 parameters
and it
works…
I think 32 parameters is more that I can use ☹

De : Alan Shore <ashore@xxxxxxxx<mailto:ashore@xxxxxxxx>>
Envoyé : mardi 17 août 2021 14:30
À : RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:
rpg400-l@xxxxxxxxxxxxxxxxxx>>
Cc : Jean-Marc DUVAL <jean-marc.duval@xxxxxxxxxxx<mailto:
jean-marc.duval@xxxxxxxxxxx>>
Objet : RE: web services parameters limitation



ATTENTION : Ce message provient d'une source EXTERNE. Veuillez
n'ouvrir
les liens ou pièces jointes que si vous êtes sûr de l'expéditeur.


Hi Jean Marc
When I first looked into IWS some months ago – I had a problem in
using
more than one parameter.
Someone suggested that a particular ptf had to be applied. This
rectified my problem

Unfortunately, I am unable to locate my notes as to what ptf and
who it
was that told me
If you were successful in the past, but never had more than one
parameter, this maybe the problem
I will continue looking for my notes, but maybe someone else will
know
what I am speaking of
If you have been successful in using more than one parameter, then
what
I am looking for is obviously NOT the answer
Let me know

Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image006.png@01D79380.84F95A30]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx<mailto:
ASHORE@xxxxxxxxxxxxxxxxxxxx>

‘If you're going through hell, keep going.’
Winston Churchill

From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On
Behalf
Of Jean-Marc DUVAL via RPG400-L
Sent: Tuesday, August 17, 2021 8:17 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:
rpg400-l@xxxxxxxxxxxxxxxxxx>>
Cc: Jean-Marc DUVAL <jean-marc.duval@xxxxxxxxxxx<mailto:
jean-marc.duval@xxxxxxxxxxx>>
Subject: [EXTERNAL] web services parameters limitation

Hi,

I would like to know if there were a limitation for the number of
parameters in REST web services ?
I am in 7.2 version and use V2.6 web services.

I am trying to build a web service with 32 parameters and it does
not
work...
--
This is the RPG programming on IBM i (RPG400-L) mailing list To
post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto:
RPG400-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/lis
tinfo/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5
EsmKRxzRg9j9dPGurbExtUz3_gZ5UBog$ <

https://urldefense.com/v3/__https:/lists.midrange.com/mailman/listinfo
/rpg400-l__;!!J76aczzK!hJfeCbICExD8MkS28BKrduaOb8EpyotYEPH1ElicTc1sVrK
O-XsWyBhEjg87yGXuuhjHgg$

or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx<mailto:
RPG400-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l_
_;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPG
urbExtUz3_RbjRm9w$ <

https://urldefense.com/v3/__https:/archive.midrange.com/rpg400-l__;!!J
76aczzK!hJfeCbICExD8MkS28BKrduaOb8EpyotYEPH1ElicTc1sVrKO-XsWyBhEjg87yG
XuQNbb-w$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:
support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!J76aczzK
!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz38Jhym
bgw$ <

https://urldefense.com/v3/__https:/amazon.midrange.com__;!!J76aczzK!hJ
feCbICExD8MkS28BKrduaOb8EpyotYEPH1ElicTc1sVrKO-XsWyBhEjg87yGVyT1WhIA$

--
This is the RPG programming on IBM i (RPG400-L) mailing list To
post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/lis
tinfo/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5
EsmKRxzRg9j9dPGurbExtUz3_gZ5UBog$ or email:
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz3_RbjRm9w$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!J76aczzK
!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz38Jhym
bgw$

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post
a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listi
nfo/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmK
RxzRg9j9dPGurbExtUz3_gZ5UBog$ or email:
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz3_RbjRm9w$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!J76aczzK
!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz38Jhym
bgw$

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinf
o/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzR
g9j9dPGurbExtUz3_gZ5UBog$ or email:
RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz3_RbjRm9w$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!J76aczzK!n
PuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz38Jhymbgw$

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz3_gZ5UBog$
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz3_RbjRm9w$
.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!J76aczzK!nPuYtwIkByf8Og4qZKwkvQ7H0VQLr3xPSU3wq5EsmKRxzRg9j9dPGurbExtUz38Jhymbgw$
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx 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.