Erin,
WDSC (or RDi or whatever) includes tools for consuming a web service.
There's a wizard you can start (New - Other or New - Webservice) where
you put in the address of the web service wsdl and it generates classes
to consume the service. Wrap this with some classes with methods that
take and return byte arrays. Instantiate those classes and call the
methods from your RPG. RPG works very well with byte arrays. Your
wrapper classes change the byte arrays to java strings. Just be careful
to construct your application so it doesn't have to create a new JVM
very often. We've done this with great success at RJS.
Dan Kimmel
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of
EStrobel@xxxxxxxxxxxxxxxx
Sent: Tuesday, December 23, 2008 9:37 AM
To: java400-l@xxxxxxxxxxxx
Subject: RPG to Java-based Services
We are in the process of implementing a new policy admin system under
Insurance Application Architecture (IAA) and some third party software
components we've purchased and can no longer directly access a database
file to get the data we need for legacy systems. This is a rule by the
vendor - all data within their components must be retrieved via their
Java based services - no direct access or SQL. However, all of our
back-end systems (Billing, Claims, etc) are written in RPG and Synon
RPG. We need to integrate this new policy admin system with the old
back-end systems and do not have any experience in the techniques or
technical implementation options to make this happen.
My job is to figure out how to do this - have our legacy RPG/Synon based
applications access their Java based services - what methods are
possible, pros/cons, performance implications, etc. These "services" can
be exposed as either web services (SOAP/HTTP) or EJB2 RMI. I believe at
the moment they are EJB's and are remote - they will not reside on the
same physical box as the RPG code. The platforms of each box more than
likely will be
different: Our legacy RPG code is on an iSeries, and the Java based
services will be deployed within Websphere Application Server on
Windows, AIX or Linux. More often than not, we'll need to send in
parameters, and be able to get back all of the relevant data we're
looking for.
Any ideas or experiences?
Erin L Strobel
Information Services - Programmer
Church Mutual Insurance
1-800-554-2642 Ext. 4947
--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.