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



Intriguing way to make any rpg programmer into a web service developer, wrap the normal rpg with the extra snippets and compile

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Niels Liisberg
Sent: Friday, February 06, 2009 3:49 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] Creating an RPG web service without WDSC/RDi

Hi Mike;



I think you will find some overlaps in implementations of web-services using
RPG.



Besides to make a JSP/JAVA webservice using RDI running under WebSphere you
have other posibilies:



One way is to use the PHP. You create the webservice in PHP and call your
RPG application using the PHP toolkit, where you can call any ILE program.



Also I know that you can find a more native solution near Aarons heart at:



http://www.rpg-xml.com





And finally ... I have to go into vendor mode .. is IceBreak



IceBreak is using "annotations" into the RPG syntax which make RPG the only
language you need to define and code a web service...



Annotations are heavily used in C# and even more in NetBeans to extend
native languages to support and expose webservices.



Take a look at this tiny calculator webservice in RPG using IceBreak :







<%@ language="RPGLE" pgmtype="webservice" %>

<%

h nomain



p*name++++++++++..b...................keywords++++++++++++++++++++++++++comm
ents++++++++++++

p Calculator B export



d Calculator pi

d x 10i 0 Input

d y 10i 0 Input

d z 10i 0 Output



/free



z = x + y;



/end-free

p Calculator E

%>





The "pgmtype=webservice" causes the precompiler to build a ILE service
program, and the "export" let it be exposed as an web-service.





The rest is just a normal service program - exept for the "annotation" on
the parameter namely "input" / "OutPut" and "InOut".



Look at it as keywords which is not allowed in the normal RPG syntax.
However these "annotations" causes the SOAP envelop to be created and a
WSDL file to be produced ..





A consequence; all RPG service programs in IceBreak is actually also
webservices .. think about that . The guys down at first have made a good
job :-)









Best regards





Niels Liisberg

IceBreak Chief SW Architect



System & Metode Technologies

Håndværkersvinget 8, DK-2970 Hørsholm

Phone: +45 70 20 36 10

Fax: +45 70 20 30 11

Direct: +45 45 177 055

Mobile: +45 31 158 861

E-mail: nli@xxxxxxxxxxxxxxxxx

Web: www.system-method.com and www.Icebreak.org







-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Mike Cunningham
Sent: 6. februar 2009 14:30
To: 'Web Enabling the AS400 / iSeries'
Subject: [WEB400] Creating an RPG web service without WDSC/RDi



Is there a way to turn an RPG stored procedure into a web service without
using WDSC/RDi? Maybe by using an existing web service that calls RPG as a
base and cut/paste/rename/edit the files in the IFS manually? Someway that
does not have the added overheard of needing to learn WDSC/RDi just to do
that final step after the rpg app has been created and tested


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.