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



IBM has (free) updated 7.1 and 7.2 through the http and java groups ptfs
some neat enhancements to web service on i.
This link to 2nd in series of articles. See also 1st and 3rd.
http://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/

Example of a simple RPGLE web service.
Btw - need a better subject on this thread..

Jim Franz


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Paul Roy
Sent: Wednesday, November 04, 2015 4:57 AM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] WEB400 Digest, Vol 13, Issue 399

Hello,

HTTPAPI is usefull to call webservice. (the client part). it is not intended
to provide a webservice (the server part)

to implement a webservice server, you should (basically)

- write a RPG program with 2 parms
1) input DS matching the request XML)
2) output DS matching the response...
- generate the PCML when you compile the program
- install and configure the web service server using
http:/:yoursystem:2001/HttpAdmin
- install the service in the webservice server using the PCML...

Paul


message: 1
date: Tue, 3 Nov 2015 22:48:49 +0000
from: Matt Shea <mshea@xxxxxxxxxxxx>
subject: [WEB400] IBM i Receive XML POST

Hi Everyone,


I have a requirement to begin receiving POSTed XML requests from a customer,
process the request, and return an XML response back. I'm not sure where to
begin. I have attempted this in PHP but have not been successful.


So now I'm considering handling this in RPG using Scott's HTTPAPI but I
haven't located an example that receives a XML POST request, only those that
read from existing XML files.


Does anyone have thoughts on best route to take without investment in
another software package as there is no budget? RPG vs PHP vs ???.


Thanks in advance,

Matt

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.