Skip to main content
Solved

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

  • August 9, 2018
  • 1 reply
  • 194 views

raaaju1990
Contributor
Forum|alt.badge.img+6

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.

View original
Did this help you find an answer to your question?

1 reply

david_r
Celebrity
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings