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



Hi,

The beauty of integrated web services support... the ILE program or
service program does not have to deal with XML or JSON. It just deals
with the parameters. The payload (whether XML or JSON) is handled by the
integrated web services support.


"WEB400" <web400-bounces@xxxxxxxxxxxx> wrote on 11/05/2018 10:02:22 PM:

From: Booth Martin <booth@xxxxxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Date: 11/05/2018 10:02 PM
Subject: [WEB400] CNVRTTMP.RPGLE has no xml or json -
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>

All the documentation I find about web services talks about SOAP and
REST and XML & JSON. Yet the IBM-supplied example CNVRTTMP.RPGLE is
just a regular program. What am I not understanding?

*********************************************************************
d ConvertTemp pr
*****************************************
d tempIn 10 const
d tempOut 10
*****************************************
p ConvertTemp b export
*****************************************
d ConvertTemp pi
d tempIn 10 const
d tempOut 10
*****************************************
d tempI s 8P 2
d tempO s 8P 2
d value S 50A
/free
value = %STR(%ADDR(tempIn));
tempI=%DEC(value:7:2);
tempO = (5/9)*(tempI - 32);
value = %CHAR(tempO);
tempOut = value;
%STR(%ADDR(tempOut):10)=tempOut;
/end-free
p ConvertTemp e





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.