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



Not sure why you think it's Scott's example...

It's not I pulled it off some other web site and changed the data to
represent customers.

It is not intended to be complete as far as what's required. Just a quick
and dirty example of a JSON list/array.

Charles

On Fri, Jun 26, 2015 at 10:13 AM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

Charles

with all due respect for Scotts example it is only the half truth.

As you can se my client code is rather simple while the server code
is not so simple.

This is due to Apache and the Mime format.

Apache only converts what it receives to EBCDIC if the Mime header is
Text/... otherwise you have to do it yourself.

Many web services requires a content-type Application/... and then you
have to convert the input and output buffer yourself.

To add to this the Mime header (content-type etc) has to be in EBCDIC


On Fri, Jun 26, 2015 at 4:04 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

http://lmgtfy.com/?q=create+json+web+service+rpgle

You should also consider joining the WEB400 list
http://lists.midrange.com/mailman/listinfo/web400


Charles

On Fri, Jun 26, 2015 at 9:46 AM, gio.cot <gio.cot@xxxxxxxxxxx> wrote:

You could have a web service return a XML, JSON, text, ect. document
that
contained a list or array. An example in JSON might look like:
"customer":

[
{ "id": "5001", "name": "Tom" },
{ "id": "5002", "name": "Charles" },
{ "id": "5005", "name": "Mike" },
{ "id": "5007", "name": "Doug" },
{ "id": "5006", "name": "Sue" },
{ "id": "5003", "name": "Kim" },
{ "id": "5004", "name": "Kristy" }
]



Hi Charles

My Web Service should be written in RPG.. is it possible with RPG
create
and return a XML,JSON text document and return it to the caller ??

Where can if find some example ?

Thanks in advance



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.