Author |
Message
|
missing_link |
Posted: Thu May 08, 2008 2:31 am Post subject: Sending multiple msgs over HTTP |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 61
|
Guys
I have an existing msgflow running over MQ which reads from a database and propagates mutiple msgs (one per db record). I need to extend this so that its available over HTTP.
The flow is processing the request over http correctly is sending multiple msgs back thru the HTTPReply node, but the HTTP client (currently just another flow for testing purposes) only ever receives the first message that is propagated.
I guess I have two questions:
1) Is the broker capable of sending multiple responses over HTTP like this?
2) Any ideas as to what I am missing to make this work? Something in the HTTP headers etc?
cheers
ash. |
|
Back to top |
|
 |
AkankshA |
Posted: Thu May 08, 2008 2:38 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
HTTPInput and HTTPReply node are used in a pair..
usage of HTTPRequest node would resolve this problem |
|
Back to top |
|
 |
AkankshA |
Posted: Thu May 08, 2008 2:40 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
|
Back to top |
|
 |
missing_link |
Posted: Thu May 08, 2008 2:58 am Post subject: |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 61
|
thanks for the link..will have a read and see if that gives any pointers. we're on 6.1 so assume most (if not all) of it is relevant.
I know how to use the HTTP nodes. The 'server' flow receives via HTTPInput and replies with HTTPReply. My 'client' (or test) flow invokes using HTTPRequest node. They are communicating, its just that the client is only receiving one (the first) response whereas the server is actually sending 5.
cheers
ash. |
|
Back to top |
|
 |
AkankshA |
Posted: Thu May 08, 2008 3:08 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
well as far as my understanding of HTTP req responce scenerio goes - response is associated with the reply by a request identifier that is stored in LocalEnvironment by the HTTPInput node
and its a req reply i.e 1:1 scenerio
for sending multiple responces one need to use HTTPReuest node.. which ll be taken as fresh ones..
THOUGH i stand to be corrected here.... _________________ Cheers |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 08, 2008 5:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
HTTP does not allow more than one response to the same request. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
missing_link |
Posted: Thu May 08, 2008 5:36 am Post subject: |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 61
|
thanks Jeff.
Was starting to wonder about that....back to the drawing board with this....
<sigh>
ash. |
|
Back to top |
|
 |
|