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 Index » WebSphere Message Broker (ACE) Support » Single request and multiple responses

Post new topic  Reply to topic
 Single request and multiple responses « View previous topic :: View next topic » 
Author Message
muthu121521
PostPosted: Tue Nov 03, 2015 9:22 am    Post subject: Single request and multiple responses Reply with quote

Apprentice

Joined: 31 Aug 2015
Posts: 36

Hi All,
I have a requirement where in i need to send the response by splitting it because of the size of the payload .
Through which node i can achieve this functionality ?
Service exposed have to be in https or web service node?
Will using async response node will achieve this functionality ?
has any one worked on similar requirements pls let me know
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Nov 03, 2015 9:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

HTTP only sends a single response message.

In order for the HTTP requester to get another response, it will need to make another request.

SOAP over JMS and SOAP over HTTP both have this same issue.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 03, 2015 9:49 am    Post subject: Re: Single request and multiple responses Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

muthu121521 wrote:
I have a requirement where in i need to send the response by splitting it because of the size of the payload .
Through which node i can achieve this functionality ?


You can't. Request and response are a pair.

muthu121521 wrote:
Service exposed have to be in https or web service node?


Neither - it won't work.

muthu121521 wrote:
Will using async response node will achieve this functionality ?


No.


muthu121521 wrote:
has any one worked on similar requirements pls let me know


Yes.

For a large number of discrete results, typically you send as much of the request as you can (say 50 rows from a database result set containing 1000 rows) with a flag in the response indicating that there's more to come. The requestor then repeats the request, adding a value of "50" so that the requesting service knows to send rows 51-100 and a flag saying "more to come". The process repeats with the last set of rows having a flag saying "we're done". Clearly you can cache the result set to prevent excessive database access.

If the result is one large item (say a JPEG or PDF document), the result can be saved to a file system or other bulk storage and the web service can return with a URL from which it can be retrieved. This requires proper security and other such design, and both solutions have to be implemented in code. Broker does not provide either out of the box.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Single request and multiple responses
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.