That is good to know. I will have to put some time around to play with it again. Is there a more recent version of this article? This is where I got that limitation.

https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/index.html


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nadir Amra
Sent: Tuesday, November 06, 2018 9:39 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] CNVRTTMP.RPGLE has no xml or json -

Just a clarification.

IWS does not require you to return JSON or XML. You can return anything you want. However, if returning binary data it would need to be base64 encoded AND the appropriate HTTP headers set.



"WEB400" <web400-bounces@xxxxxxxxxxxx> wrote on 11/06/2018 08:30:12 AM:

From: Kevin Bucknum <Kevin@xxxxxxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>
Date: 11/06/2018 08:31 AM
Subject: Re: [WEB400] CNVRTTMP.RPGLE has no xml or json - Sent by:
"WEB400" <web400-bounces@xxxxxxxxxxxx>

Soap is a standard. It specifies how you should ask for the data, and
how the data has to look when you return it. It also provides for
discovery services.

Rest is a way of doing things. There isn't a standard. Rest is about
simplifying the process down to basic transactions, and letting you
decide how to request what you want, and how to return it.

IWS is IBM's application server that acts as middleware. It imposes
its own requirements on the process. I haven't ever actually used IWS
for production, but did play around with it a (long) while ago.
At the time as I recall, Soap was the only option, and after playing
around with it, it was overkill for what I needed.

Fundamentally web services are just the process of sending or
requesting data via HTTP. The basic requests that browsers use to
post forms and get data could even be considered Rest. Soap is like an
envelope. You have to address it correctly, you have to put the stamp
in the right place, etc.

Since there is no standard for Rest, there is no requirement that your
Restful web service return XML or JSON. None of mine do. IWS however
forces you to choose to return either JSON or XML. It also defines how
it is going to pass your program (in this case the program created
when you compile the module below and create a program out of it) the
parameters it receives, and how your program is supposed to return the
data. It is built by IBM. They understand RPGLE. They don't make you
do the XML or JSON formatting. They handle all of that for you and let
you use traditional RPGLE parameters.



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



[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com



CONFIDENTIALITY NOTICE

This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

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.