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.