Posted: Thu Oct 31, 2019 4:53 am Post subject: Response message parsing in HTTP request node
Centurion
Joined: 16 Oct 2011 Posts: 124 Location: London
Hi All,
I have a flow where I am calling a REST API service using HTTP request node. The service replies in JSON format. I have selected the message domain as JSON domain under the response message parsing option in HTTP request node. But still its coming as blob. I have verified the service directly from postman and I could see the third party responds with JSON format and with content-type application/json. In IIB also, I could see the content type in http response header as application/json.
When i replaced HTTP request node with REST request node, I am getting the response in JSON.
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
Note that you should also detect other HTTP REST API response formats and handle them. eg. http response code 500 (internal web server error) may have response data in HTML format, which will need to be logged for diagnostic purposes. _________________ Glenn
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum