× 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 Bill, You may want to take a look at new integrated web services client
support[1] to consume REST services. It is really simple and there is an
RPG coding example.

[1]
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/dW%20IBM%20Integrated%20Web%20Services%20for%20i/page/Send%20user-defined%20payloads%20using%20new%20client%20APIs







From: Bill Freiberg <bill.freiberg@xxxxxxxxxxxxxx>
To: "midrange-l@xxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxx>
Date: 04/12/2016 05:58 PM
Subject: Invoking a remote webservice using JSON
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



I need to have an RPG program invoke a remote web service and that web
service uses JSON for its request and response. This requires a post
request, and I need to set the Accept: application/json and Content-Type:
application/json header attributesin the header, then send the json in the
body. I have used YAJL to construct the JSON correctly. My problem is that
all examples I can find show how to “BE” the web service, not how to
“CONSUME” a web service with JSON. I have previously invoke remote
RESTful web services that use XML via Scot Klement’s LIBHTTP utilites. The
JSON piece and header/body have me spinning in circles. Does anybody have
an samples they know of that show how to consume a web service that uses
JSON for the request and response?








Bill Freiberg
Applications Development Manager
[Description: Description: ims_smlogo]
Integrated Merchandising Systems, LLC
8338 Austin Avenue
Morton Grove, IL 60053
(847) 583-3821 Work
(630) 240-1584 Cell


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. Dissemination, distribution or
copying of this email or the information herein by anyone other than the
intended recipient, or an employee or agent responsible for delivering the
message to the intended recipient, is prohibited.

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.