ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportResponse message parsing in HTTP request node

Post new topicReply to topic
Response message parsing in HTTP request node View previous topic :: View next topic
Author Message
Bichu
PostPosted: Thu Oct 31, 2019 4:53 am Post subject: Response message parsing in HTTP request node Reply with quote

Centurion

Joined: 16 Oct 2011
Posts: 118
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.

Am i missing anything in HTTP request node?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Oct 31, 2019 3:08 pm Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2040
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
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportResponse message parsing in HTTP request node
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.