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 » New HTTP nodes in WBI MB V5

Post new topic  Reply to topic
 New HTTP nodes in WBI MB V5 « View previous topic :: View next topic » 
Author Message
mverh
PostPosted: Mon Dec 08, 2003 1:39 pm    Post subject: New HTTP nodes in WBI MB V5 Reply with quote

Voyager

Joined: 06 Mar 2002
Posts: 97

Has anyone out there given any thought to how they will utilize the new WBIMB HTTP nodes (HTTPInput, HTTPReply, HTTPRequest) in a request reply model where the broker forwards requests to downstream service providers?

The reason I ask is because prior to V5 microflows were stateless. In my case I have separate flows that handle requests and responses and we either send the state info to the downstream service provider and have them echo it back or we save it off into a d/b in the request flow and retrieve it in the response flow. With the HTTP nodes we no longer are stateless, the flow that has the HTTPInput node must also have the HTTPReply. If this is the case I don't see the benefit of HTTP nodes in the WBI architecture, except perhaps where WBI is the requester of a web service.

I was hoping that I could simply drop a HTTPInput node into my request flow and a HTTPReply node into my response flow and expose existing services to requesters over HTTP.

Comments appreciated.

Marc Verhiel
Back to top
View user's profile Send private message
mgk
PostPosted: Tue Dec 09, 2003 1:36 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You can do what you want as of 5.0-CSD2. There is a reply identifier that is placed in the
Code:
LocalEnvironment.Destination.HTTP.RequestIdentifier
by the HTTPInputNode. This links the HTTPInputNode and the HTTPReplyNode. You can normally ignore it, but if you want to have Input and Reply nodes in separate flows then you must save this in the Input flow, either in the message leaving the flow or in a DB, then reset it again in the Reply flow before the message leaves the HTTPReplyNode. Therefore, although the Input and Reply Nodes still need to be paired, they can be split accross flows if necessary. Indeed the ability to flow from HTTP -> MQOUT -> MQIN-> HTTPReply is one our our design scenarios.
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
mverh
PostPosted: Tue Dec 09, 2003 4:36 am    Post subject: Reply with quote

Voyager

Joined: 06 Mar 2002
Posts: 97

MGK, thanks for the info..I traced ${Root} and didn't see anything in the HTTPInputHeader that let me know about the requester, I didn't think to trace LocalEnvironment...I'll try it out...thanks again...
Back to top
View user's profile Send private message
mverh
PostPosted: Tue Dec 16, 2003 1:28 pm    Post subject: Reply with quote

Voyager

Joined: 06 Mar 2002
Posts: 97

MGK, I have managed to get the request reply model across two flows. However, the response received by my "Poster" is not what I expect. I get back two bytes of data equal to "Lo" which looks suspiciously like the start of "LocalEnvironment", nowhere in my XML response data are the chars "Lo".

Other than setting LocalEnvironment.Destination.HTTP.RequestIdentifier is there anything else I need to set explicity before the HTTPReply node which may be causing my data to be truncated?
Back to top
View user's profile Send private message
mverh
PostPosted: Wed Dec 17, 2003 5:38 am    Post subject: Reply with quote

Voyager

Joined: 06 Mar 2002
Posts: 97

Ok, the problem was caused my copying the message headers...I was modifying an existing flow and in the compute node was the logic to copy the message headers...I put in a check to determine if the reply protocol was HTTP and if so I branched around the code where the message headers were copied...this resolved the problem...don't know why 2 bytes were sent when the message headers were copied...
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 » New HTTP nodes in WBI MB V5
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.