On Sat, Jul 30, 2016 at 12:37 AM, Madie <bpcs.erp@xxxxxxxxx> wrote:

Hello,

I am converting RPGLE programs to web services (currently to SOAP) using
IWS on IBM i

a) I already have this RPGLE already written (currently used to wrap it as
stored procedure and used outside of IBM i ) which will basically return
result set to calling program. I am trying to re-use same RPGLE (as I do
not want to re-write/re-copy business logic again).
b) But one thing which I do not like is existing program uses multi
occurrence data structure to return back result set. In existing case it
all works out great as existing program just return number of
rows/occurrence fetched from database.
c) When I am trying to reuse the same program as web service, I get SOAP
response with lot of data strucure as empty. I do not like it and looking
at ways to prevent. If a data strucure is empty I do not want to sent it.
To prevent it, my understanding says
i) Either I should be able to set the data structure occurrence
number dynamically (decided based on how many records I got following my
business logic). I am not really been able to do it and think IBM i do not
have any cleaner way to do it. I tried using realloc/alloc approach but
this does not really helped me.

ii) Else, we should have a natural way to to tell web service to
get the result set and convert to xml/json response without me bothering
about how many data structure were fetched and try to prevent empty data
structure . I have not so far got to know that it is possible in IBM i.

I will hope my concern is clear and someone from group can enlighten us
with my concerns.

Thanks in advance

Regards,

On Sat, Jul 30, 2016 at 12:35 AM, Madie <bpcs.erp@xxxxxxxxx> wrote:

Hello,

I am converting RPGLE programs to web services (currently to SOAP) using
IWS on IBM i

a) I already have this RPGLE already written (currently used to wrap it
as stored procedure and used outside of IBM i ) which will basically return
result set to calling program. I am trying to re-use same RPGLE (as I do
not want to re-write/re-copy business logic again).
b) But one thing which I do not like is existing program uses multi
occurrence data structure to return back result set. In existing case it
all works out great as existing program just return number of
rows/occurrence fetched from database.
c) When I am trying to reuse the same program as web service, I get SOAP
response with lot of data strucure as empty. I do not like it and looking
at ways to prevent. If a data strucure is empty I do not want to sent it.
To prevent it, my understanding says
i) Either I should be able to set the data structure occurrence
number dynamically (decided based on how many records I got following my
business logic). I am not really been able to do it and think IBM i do not
have any cleaner way to do it. I tried using realloc/alloc approach but
this does not really helped me.

ii) Else, we should have a natural way to to tell web service to
get the result set and convert to xml/json response without me bothering
about how many data structure were fetched and try to prevent empty data
structure . I have not so far got to know that it is possible in IBM i.

I will hope my concern is clear and someone from group can enlighten us
with my concerns.

Thanks in advance

Regards,




On Mon, Jul 11, 2016 at 10:30 PM, <web400-request@xxxxxxxxxxxx> wrote:

Send WEB400 mailing list submissions to
web400@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.midrange.com/mailman/listinfo/web400
or, via email, send a message with subject or body 'help' to
web400-request@xxxxxxxxxxxx

You can reach the person managing the list at
web400-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WEB400 digest..."


*** NOTE: When replying to this digest message, PLEASE remove all text
unrelated to your reply and change the subject line so it is meaningful.

Today's Topics:

1. Redis on IBMi (Kevin Turner)
2. Re: Redis on IBMi (Mark S Waterbury)
3. Re: Redis on IBMi (Kevin Turner)


----------------------------------------------------------------------

message: 1
date: Mon, 11 Jul 2016 10:29:29 +0000
from: Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
subject: [WEB400] Redis on IBMi

I was wondering if anyone had successfully installed Redis using the RPM
package(s) on Perzl?

I downloaded all the dependencies (a dependency file is provided for
each package) but when I tried the install a whole raft of other
dependencies were list (see below).
Top of the list was "/bin/sh is needed by bash-4.2-12". I already
have "sh" installed of course, but it seems that is not known to the RPM
database. Before I get into dependency hell (no yum on the ibmi) and
attempt to download everything else, I was wondering if anyone else had
installed it previously?

This is not, strictly speaking, a web400 topic but I don't know of a
perzl mailing list (although I have emailed Michael Perzl).

Thanks


/bin/sh is needed by bash-4.2-12
/bin/sh is needed by bash-4.2-12
libc.a(shr.o) is needed by bash-4.2-12
libcurses.a(shr42.o) is needed by bash-4.2-12
libdl.a(shr.o) is needed by bash-4.2-12
/bin/sh is needed by coreutils-8.22-1
libc.a(shr.o) is needed by coreutils-8.22-1
libperfstat.a(shr.o) is needed by coreutils-8.22-1
libpthreads.a(shr_comm.o) is needed by coreutils-8.22-1
libpthreads.a(shr_xpg5.o) is needed by coreutils-8.22-1
/bin/sh is needed by gettext-0.10.40-8
/bin/sh is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gettext-0.10.40-8
libiconv.a(shr4.o) is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gmp-5.1.3-1
/bin/sh is needed by info-5.1-2
libc.a(shr.o) is needed by info-5.1-2
libcurses.a(shr42.o) is needed by info-5.1-2
AIX-rpm >= 7.1.0.0 is needed by libgcc-4.8.2-1
AIX-rpm < 7.2.0.0 is needed by libgcc-4.8.2-1
libc.a(shr.o) is needed by libgcc-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libgcc-4.8.2-1
AIX-rpm >= 7.1.0.0 is needed by libstdc++-4.8.2-1
AIX-rpm < 7.2.0.0 is needed by libstdc++-4.8.2-1
libc.a(shr.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_comm.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libstdc++-4.8.2-1
/bin/sh is needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by popt-1.7-2
AIX-rpm >= 5.2.0.0 is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
libc.a(shr.o) is needed by redis-2.6.17-1
libpthreads.a(shr_comm.o) is needed by redis-2.6.17-1
libpthreads.a(shr_xpg5.o) is needed by redis-2.6.17-1
libgcc = 4.6.2-1 is needed by gcc-4.6.2-1
libgcc = 4.8.3-1 is needed by gcc-4.8.3-1
libgcc = 4.8.3-1 is needed by gcc-4.8.3-1



________________________________

NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity to
which it is directed and may contain information that is privileged or
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying or
forwarding it, and notify the sender of the error by reply email or by
telephone, so that the sender's address records can be corrected.




--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.


------------------------------

message: 2
date: Mon, 11 Jul 2016 06:35:26 -0400
from: Mark S Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>
subject: Re: [WEB400] Redis on IBMi

Kevin:

This topic would be better served by posting in the (relatively new)
opensource@xxxxxxxxxxxx mailing list.

HTH,

Mark S. Waterbury

> On 7/11/2016 6:29 AM, Kevin Turner wrote:
I was wondering if anyone had successfully installed Redis using the
RPM package(s) on Perzl?

I downloaded all the dependencies (a dependency file is provided for
each package) but when I tried the install a whole raft of other
dependencies were list (see below).
Top of the list was "/bin/sh is needed by bash-4.2-12". I already
have "sh" installed of course, but it seems that is not known to the RPM
database. Before I get into dependency hell (no yum on the ibmi) and
attempt to download everything else, I was wondering if anyone else had
installed it previously?

This is not, strictly speaking, a web400 topic but I don't know of a
perzl mailing list (although I have emailed Michael Perzl).

Thanks


/bin/sh is needed by bash-4.2-12
/bin/sh is needed by bash-4.2-12
libc.a(shr.o) is needed by bash-4.2-12
libcurses.a(shr42.o) is needed by bash-4.2-12
libdl.a(shr.o) is needed by bash-4.2-12
/bin/sh is needed by coreutils-8.22-1
libc.a(shr.o) is needed by coreutils-8.22-1
libperfstat.a(shr.o) is needed by coreutils-8.22-1
libpthreads.a(shr_comm.o) is needed by coreutils-8.22-1
libpthreads.a(shr_xpg5.o) is needed by coreutils-8.22-1
/bin/sh is needed by gettext-0.10.40-8
/bin/sh is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gettext-0.10.40-8
libiconv.a(shr4.o) is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gmp-5.1.3-1
/bin/sh is needed by info-5.1-2
libc.a(shr.o) is needed by info-5.1-2
libcurses.a(shr42.o) is needed by info-5.1-2
AIX-rpm >= 7.1.0.0 is needed by libgcc-4.8.2-1
AIX-rpm < 7.2.0.0 is needed by libgcc-4.8.2-1
libc.a(shr.o) is needed by libgcc-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libgcc-4.8.2-1
AIX-rpm >= 7.1.0.0 is needed by libstdc++-4.8.2-1
AIX-rpm < 7.2.0.0 is needed by libstdc++-4.8.2-1
libc.a(shr.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_comm.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libstdc++-4.8.2-1
/bin/sh is needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by popt-1.7-2
AIX-rpm >= 5.2.0.0 is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
libc.a(shr.o) is needed by redis-2.6.17-1
libpthreads.a(shr_comm.o) is needed by redis-2.6.17-1
libpthreads.a(shr_xpg5.o) is needed by redis-2.6.17-1
libgcc = 4.6.2-1 is needed by gcc-4.6.2-1
libgcc = 4.8.3-1 is needed by gcc-4.8.3-1
libgcc = 4.8.3-1 is needed by gcc-4.8.3-1



________________________________

NOTICE: The information in this electronic mail transmission is
intended by CoralTree Systems Ltd for the use of the named individuals or
entity to which it is directed and may contain information that is
privileged or otherwise confidential. If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone, so that the sender's address records can be corrected.




--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.




------------------------------

message: 3
date: Mon, 11 Jul 2016 10:36:10 +0000
from: Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
subject: Re: [WEB400] Redis on IBMi

OK - will do. Thanks

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Mark S
Waterbury
Sent: 11 July 2016 11:35
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Redis on IBMi

Kevin:

This topic would be better served by posting in the (relatively new)
opensource@xxxxxxxxxxxx mailing list.

HTH,

Mark S. Waterbury

> On 7/11/2016 6:29 AM, Kevin Turner wrote:
I was wondering if anyone had successfully installed Redis using the
RPM package(s) on Perzl?

I downloaded all the dependencies (a dependency file is provided for
each package) but when I tried the install a whole raft of other
dependencies were list (see below).
Top of the list was "/bin/sh is needed by bash-4.2-12". I already
have "sh" installed of course, but it seems that is not known to the RPM
database. Before I get into dependency hell (no yum on the ibmi) and
attempt to download everything else, I was wondering if anyone else had
installed it previously?

This is not, strictly speaking, a web400 topic but I don't know of a
perzl mailing list (although I have emailed Michael Perzl).

Thanks


/bin/sh is needed by bash-4.2-12
/bin/sh is needed by bash-4.2-12
libc.a(shr.o) is needed by bash-4.2-12
libcurses.a(shr42.o) is needed by bash-4.2-12
libdl.a(shr.o) is needed by bash-4.2-12
/bin/sh is needed by coreutils-8.22-1
libc.a(shr.o) is needed by coreutils-8.22-1
libperfstat.a(shr.o) is needed by coreutils-8.22-1
libpthreads.a(shr_comm.o) is needed by coreutils-8.22-1
libpthreads.a(shr_xpg5.o) is needed by coreutils-8.22-1
/bin/sh is needed by gettext-0.10.40-8
/bin/sh is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gettext-0.10.40-8
libiconv.a(shr4.o) is needed by gettext-0.10.40-8
libc.a(shr.o) is needed by gmp-5.1.3-1
/bin/sh is needed by info-5.1-2
libc.a(shr.o) is needed by info-5.1-2
libcurses.a(shr42.o) is needed by info-5.1-2 AIX-rpm >= 7.1.0.0 is
needed by libgcc-4.8.2-1 AIX-rpm < 7.2.0.0 is needed by libgcc-4.8.2-1
libc.a(shr.o) is needed by libgcc-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libgcc-4.8.2-1 AIX-rpm >=
7.1.0.0 is needed by libstdc++-4.8.2-1 AIX-rpm < 7.2.0.0 is needed by
libstdc++-4.8.2-1
libc.a(shr.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_comm.o) is needed by libstdc++-4.8.2-1
libpthreads.a(shr_xpg5.o) is needed by libstdc++-4.8.2-1 /bin/sh is
needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by logrotate-3.8.2-1
libc.a(shr.o) is needed by popt-1.7-2
AIX-rpm >= 5.2.0.0 is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
/bin/sh is needed by redis-2.6.17-1
libc.a(shr.o) is needed by redis-2.6.17-1
libpthreads.a(shr_comm.o) is needed by redis-2.6.17-1
libpthreads.a(shr_xpg5.o) is needed by redis-2.6.17-1 libgcc = 4.6.2-1
is needed by gcc-4.6.2-1 libgcc = 4.8.3-1 is needed by gcc-4.8.3-1
libgcc = 4.8.3-1 is needed by gcc-4.8.3-1



________________________________

NOTICE: The information in this electronic mail transmission is
intended by CoralTree Systems Ltd for the use of the named individuals or
entity to which it is directed and may contain information that is
privileged or otherwise confidential. If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone, so that the sender's address records can be corrected.



----------------------------------------------------------------------
----------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity to
which it is directed and may contain information that is privileged or
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying or
forwarding it, and notify the sender of the error by reply email or by
telephone, so that the sender's address records can be corrected.




--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.


------------------------------

Subject: Digest Footer

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) digest
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



------------------------------

End of WEB400 Digest, Vol 14, Issue 102
***************************************





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.