[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question(s) about Web Services using RPG/HTTPAP



Steve,

We have been doing Web Services for about 7 years now.  After a lot of trial and error we have settled on using WDSC or the Rational Toolset to do publish web services.  If you have WDSC 7.0 or Rational Developer for I (IBM did a name change again surprised?), you have the tools needed.  We have chosen two different methods to do this.  

1.  WDSC web services creation wizard - Use Remote Systems Explorer to run the wizard against an existing RPG source file.  You can run the web services creation wizard.  Your entry parms will become the data that is exchanged with the service.

2.  Learn EGL - IBM has a free EGL Community edition to use or you can use the trial version that runs for 60 days.  EGL is a good route to go as well but the learning curve is steeper.

Pros of solution 1 -  Quicker time to develop.  Not as much of a learning curve.  Any RPG program with output parms can become a web service.
Cons of solution 1 -  Array limits in RPG.  If you have to return a lot of data RPG will hinder you.

Pros of solution 2 - No array limits.  EGL handles the arrays not RPG.
Cons of solution 2 - Steeper learning curve.  EGL (separate licensing is needed)

I'd suggest you take solution 1 if you don't have to deal with a lot of data.

After using both I favor solution 2.  Our other web services developer favors solution 1.

Both solutions will publish to WebSphere Application Server.  We haven't tried to publish to Tomcat but that probably could be done.  Either way an EAR file will be generated to be run by the web server.

Best Regards,
Tim Swearingen


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx on behalf of ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent: Sat 10/3/2009 1:00 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Ftpapi Digest, Vol 40, Issue 2
 
Send Ftpapi mailing list submissions to
	ftpapi@xxxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
	ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
	ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx

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


Today's Topics:

   1. Question(s) about Web Services using RPG/HTTPAPI (Steve Garner)
   2. Re: Question(s) about Web Services using RPG/HTTPAPI
      (Charles Wilt)
   3. Re: Question(s) about Web Services using RPG/HTTPAPI
      (Scott Klement)
   4. Re: Question(s) about Web Services using RPG/HTTPAPI
      (Mohamed Musthafa Safarulla)


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

Message: 1
Date: Fri, 2 Oct 2009 14:53:59 -0400
From: "Steve Garner" <sgarner@xxxxxxxxxxxxx>
Subject: Question(s) about Web Services using RPG/HTTPAPI
To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <008f01ca4391$bf7c8c50$3e75a4f0$@com>
Content-Type: text/plain; charset="us-ascii"

After reviewing the presentation "Consuming Web Services from RPG using
HTTPAPI", I need to learn more about publishing (or providing) a Web Service
using HTTPAPI/RPG, how is this different from "consuming" and/or what, if
any, API's are provided for this?

 

Please advise.

 

Thanks in advance.

 

Steve Garner

 

-------------- next part --------------

   After reviewing the presentation "Consuming Web Services from RPG
   using HTTPAPI", I need to learn more about publishing (or providing) a
   Web Service using HTTPAPI/RPG, how is this different from "consuming"
   and/or what, if any, API's are provided for this?


   Please advise.


   Thanks in advance.


   Steve Garner

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

Message: 2
Date: Fri, 2 Oct 2009 15:29:17 -0400
From: Charles Wilt <charles.wilt@xxxxxxxxx>
Subject: Re: Question(s) about Web Services using RPG/HTTPAPI
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	<fa303d750910021229r254ea4eft3ffb2af36c479f0d@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Well...

1) HTTPAPI doesn't come into play when publishing a web service
2) You need to be running a web server
3) You need to output a document instead of reading it
4) The CGIDEV2 toolset is one possibility

http://www.easy400.net/

http://www.mcpressonline.com/programming/dev-tools/web-services-for-the-traditional-rpg-programmer-part-i.html


HTH,
Charles

On Fri, Oct 2, 2009 at 2:53 PM, Steve Garner <sgarner@xxxxxxxxxxxxx> wrote:
>
> ? After reviewing the presentation "Consuming Web Services from RPG
> ? using HTTPAPI", I need to learn more about publishing (or providing) a
> ? Web Service using HTTPAPI/RPG, how is this different from "consuming"
> ? and/or what, if any, API's are provided for this?
>
>
> ? Please advise.
>
>
> ? Thanks in advance.
>
>
> ? Steve Garner
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. ?To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
>


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

Message: 3
Date: Fri, 02 Oct 2009 14:44:00 -0500
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
Subject: Re: Question(s) about Web Services using RPG/HTTPAPI
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <4AC65800.2010105@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

HTTPAPI is a client application only.  It does not provide (or 
"publish") web services.  It can only consume them.

IBM provides several very nice free tools for providing web services on 
i.  Personally, I suggest you start with the Integrated Web Services 
(IWS) tool.  There's a simple example, and links to documentation here:
http://systeminetwork.com/article/ibms-integrated-web-services

IWS also provides a tool for consuming web services, but I don't 
recommend that tool unless you're very good with pointers and C-style 
code.  So if you want to consume, stick with HTTPAPI (maybe with 
WSDL2RPG) and if you want to provide, try IWS.


Steve Garner wrote:
> After reviewing the presentation "Consuming Web Services from RPG
> using HTTPAPI", I need to learn more about publishing (or providing) a
> Web Service using HTTPAPI/RPG, how is this different from "consuming"
> and/or what, if any, API's are provided for this?


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

Message: 4
Date: Fri, 2 Oct 2009 14:57:08 -0500
From: Mohamed Musthafa Safarulla <mohamedmusthafa.safarulla@xxxxxxxxx>
Subject: Re: Question(s) about Web Services using RPG/HTTPAPI
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	<ffab07660910021257j424faa2bg25998a676bc298e4@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

You can create a webservice using CGIDEV2 but not the conventional ones
though. You can implement the logic of webservice implemented through
CGIDEV2.

Thanks,
Musthafa

On Fri, Oct 2, 2009 at 2:29 PM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:

> Well...
>
> 1) HTTPAPI doesn't come into play when publishing a web service
> 2) You need to be running a web server
> 3) You need to output a document instead of reading it
> 4) The CGIDEV2 toolset is one possibility
>
> http://www.easy400.net/
>
>
> http://www.mcpressonline.com/programming/dev-tools/web-services-for-the-traditional-rpg-programmer-part-i.html
>
>
> HTH,
> Charles
>
> On Fri, Oct 2, 2009 at 2:53 PM, Steve Garner <sgarner@xxxxxxxxxxxxx>
> wrote:
> >
> >   After reviewing the presentation "Consuming Web Services from RPG
> >   using HTTPAPI", I need to learn more about publishing (or providing) a
> >   Web Service using HTTPAPI/RPG, how is this different from "consuming"
> >   and/or what, if any, API's are provided for this?
> >
> >
> >   Please advise.
> >
> >
> >   Thanks in advance.
> >
> >
> >   Steve Garner
> >
> > -----------------------------------------------------------------------
> > This is the FTPAPI mailing list.  To unsubscribe, please go to:
> > http://www.scottklement.com/mailman/listinfo/ftpapi
> > -----------------------------------------------------------------------
> >
> >
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>



-- 
Thanks,
Musthafa
-------------- next part --------------

   You can create a webservice using CGIDEV2 but not the conventional
   ones though. You can implement the logic of webservice implemented
   through CGIDEV2.
   Thanks,
   Musthafa

   On Fri, Oct 2, 2009 at 2:29 PM, Charles Wilt
   <[1]charles.wilt@xxxxxxxxx> wrote:

     Well...
     1) HTTPAPI doesn't come into play when publishing a web service
     2) You need to be running a web server
     3) You need to output a document instead of reading it
     4) The CGIDEV2 toolset is one possibility
     [2]http://www.easy400.net/
     [3]http://www.mcpressonline.com/programming/dev-tools/web-services-
     for-the-traditional-rpg-programmer-part-i.html
     HTH,
     Charles

   On Fri, Oct 2, 2009 at 2:53 PM, Steve Garner
   <[4]sgarner@xxxxxxxxxxxxx> wrote:
   >
   >   After reviewing the presentation "Consuming Web Services from RPG
   >   using HTTPAPI", I need to learn more about publishing (or
   providing) a
   >   Web Service using HTTPAPI/RPG, how is this different from
   "consuming"
   >   and/or what, if any, API's are provided for this?
   >
   >
   >   Please advise.
   >
   >
   >   Thanks in advance.
   >
   >
   >   Steve Garner
   >

     >
     -------------------------------------------------------------------
     ----
     > This is the FTPAPI mailing list.  To unsubscribe, please go to:
     > [5]http://www.scottklement.com/mailman/listinfo/ftpapi
     >
     -------------------------------------------------------------------
     ----
     >
     >
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [6]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   Thanks,
   Musthafa

References

   1. mailto:charles.wilt@xxxxxxxxx
   2. http://www.easy400.net/
   3. http://www.mcpressonline.com/programming/dev-tools/web-services-for-the-traditional-rpg-programmer-part-i.html
   4. mailto:sgarner@xxxxxxxxxxxxx
   5. http://www.scottklement.com/mailman/listinfo/ftpapi
   6. http://www.scottklement.com/mailman/listinfo/ftpapi

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

-----------------------------------------------------------------------
This is the FTPAPI mailing list digest.  To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


End of Ftpapi Digest, Vol 40, Issue 2
*************************************

<<winmail.dat>>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------