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



Mike,

Why not just call a RPGLE Web Service directly?

IceBreak lets you create SOA (Service Oriented Architecture) Web Services
from any RPG service program in few easy steps.

* Set the compiler directive type="webservice".
* Set the "export" keyword on the function you want to populate.
* Use the IceBreak extended keywords Input, Output or InOut on the parameter
list.
* Suffix your source file with the .asmx extension.

When you refers to the Web Service from the Browser URL IceBreak will:

* Compile the RPG program into a service program
* Create a source file QSOAPHDR with prototypes for your functions, so you
can reuse them in a non SOAP environment.
* Build the SOAP wrapper functions for your exported functions (They have
the same name suffixed by an "_")
* Build a WSDL file that describes how to invoke the webservice

A simple RPG web service could look like:


<%@ 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
%>

This sample takes x and y as input parameters and calculates the sum z.
As you can see - it is pretty much a normal service program except for the
input/output keywords in the D-Spec.

Basically it is a normal service program with no mainline. It simply exports
a number of procedures. You are not restricted to only one.

So with this technique you can interface the outside world directly with
your RPGLE :o)


I hope that this input can give you an idea.

Regards

Bent Ronne

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

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.