Skip to main content
Solved

How to access the response body of the HTTP caller from feature reader

  • August 9, 2018
  • 1 reply
  • 245 views

raaaju1990
Contributor
Forum|alt.badge.img+9

I have a ESRI REST API and using HTTP caller to get the response in an attribute. Now I need to pass the ESRI JSON response body to the feature reader and get the geometry out of it. But, when I tried passing the response body all the features are getting rejected. May I know a possible way to get the features out of the HTTP caller response body stored in an attribute?

Best answer by david_r

I think you'll need to configure the HTTPCaller to save the response body to a temporary file (look at the TempPathnameCreator, the file is automatically deleted once the workspace ends) and let the FeatureReader read it back into the workspace.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • August 9, 2018

I think you'll need to configure the HTTPCaller to save the response body to a temporary file (look at the TempPathnameCreator, the file is automatically deleted once the workspace ends) and let the FeatureReader read it back into the workspace.