VERIFIED SOLUTION i
X

Resolve external REST webservice content type mapping error in Spectrum

Issue

An uploaded schema in the Response stage when trying to add an external webservice with the URL like
https://hostname/rest/services/WebVerkehr_DataOSM_66/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=objectid%20is%20not%20null&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=4326&outFields=%2A&f=json throws the error below when the preview is run.

“Error: An error has occurred on the server: Could not extract response: no suitable HttpMessageConverter found for response type [class com.fasterxml.jackson.databind.JsonNode] and content type [text/plain;charset=utf-8]” 

Please note:- The external web service works when the preview is run without the attached JSON schema.

 

Cause

The problem here is that the REST web service being invoked is returning a content type of “text/plain”, which is not mapped to actual content type of JSON. This error could occur with any REST web service where this is the case.

Resolution

UPDATED: April 14, 2017


This issue was fixed in Spectrum 11.1.

Environment Details

Spectrum V11.

Downloads

  • No Downloads