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



Here is my understanding.

SOAP and REST are two different protocols for developing web services. These protocols define standard ways for client devices to interact with a web service. You don’t want to re-invent the wheel every time you want to offer something like a web service to a new client.

Each of these protocols has to be implemented with programs and data.

* On the IBM i, the program that performs the business logic for a web service can be developed in a variety of languages: RPG, COBOL, CL, C Java, PHP, JavaScript via Node.JS, Python.
* XML and JSON are different ways of formatting data for transmission to a client device (laptop, tablet, phone, etc). You can use other data formats as well. XML and JSON are simply two very common formats.

So…

* A client device (e.g., a browser in a tablet) sends a request to a web service on the IBM i. Exactly how the client makes the request depends in part on specifications in the SOAP protocol or the REST protocol.
* The client’s request is received by a web server on the IBM i.
* The web server on the IBM i routes the request to programs that will process it. These programs can include RPG programs.
* The results of the program are formatted as XML or JSON.
* The web server sends the XML or JSON back to the client as a response to the initial request.

This is the gist, anyway, as I understand it. Many details can vary.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com>

From: WEB400 <web400-bounces@xxxxxxxxxxxx> On Behalf Of Booth Martin
Sent: Monday, November 5, 2018 10:02 PM
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: [EXTERNAL] [WEB400] CNVRTTMP.RPGLE has no xml or json -

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

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx<mailto:WEB400@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400<https://lists.midrange.com/mailman/listinfo/web400>
or email: WEB400-request@xxxxxxxxxxxx<mailto:WEB400-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400<https://archive.midrange.com/web400>.

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.