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



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

Follow-Ups:

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.