HTTPCALL support for JSON REST responses

Description

Note that this will handle JSON service responses.

There is another issue open for httpcall to handle POSTs which should cover both JSON and XML.

Conclusion

None
0% Done
Loading...

Activity

Show:

Drea Leed February 3, 2016 at 6:28 PM

Thanks for the tip. Let me know when it's deployed to Stu's 190 cluster or other 6.0.0 cluster and I'll test my ecl.

Anthony Fishbeck February 2, 2016 at 1:17 AM
Edited

Note that since HTTPCALL returns a Row not a dataset, you have to add one level of indirection to get your code to work. That is, one more nested record level.

l_array := RECORD
dataset(l_rawissue) issues {XPATH('Row')}; //capture the array contents
END;

dshttp:=HTTPCALL( URL, 'GET','application/json', l_array, XPATH('/'));

Anthony Fishbeck January 31, 2016 at 8:04 PM

This will be in the 6.0 platform release.

Drea Leed January 27, 2016 at 6:41 PM

Any update on which release this feature (reading json via HTTPCALL, with http headers specified) will be available?

Anthony Fishbeck November 12, 2015 at 4:24 PM

Thanks Drea, it's great to have an existing test case hitting an external service. Don't get that too often.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created September 4, 2014 at 10:25 PM
Updated February 9, 2016 at 10:10 AM
Resolved February 9, 2016 at 10:10 AM