IBM WebSphere DataPower Community Forum IBM Webspere DataPower XI50
October 12, 2008, 03:29:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: IBM WebSphere DataPower SOA Appliance Forum - Just Launched come share your knowledge!!! These forums will be a great place to build a community. This site is not associated with IBM.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Message Exchange patterns in X150  (Read 331 times)
zt
Newbie
*
Offline Offline

Posts: 2


View Profile Email
« on: May 08, 2008, 05:32:59 PM »

I am new to this technology and I was wondering if XI50 could support the following message exchange pattern:

A Client sends a http SOAP request to the device(XI50). This request is transformed into another custom XML format and sent to a back-end service via MQ.
Now the back-end service may send upto 3 XML responses via MQ back to the device(XI50). These responses should be aggregated and sent back as the SOAP response of the original http request. Assume that each of the 3 responses can have a distinct matching rule.

I am aware I have to configure a Multi-protocol Gateway service. But how do I aggregate the three messages?, can the backside MQ Handler handle sequencing etc..As you can see I still a new-bee in this product.

Thanks
zt

Logged
zt
Newbie
*
Offline Offline

Posts: 2


View Profile Email
« Reply #1 on: May 16, 2008, 12:39:06 PM »

Can somebody respond to the question???
Logged
LordB
Administrator
Newbie
*****
Offline Offline

Posts: 45


View Profile
« Reply #2 on: May 20, 2008, 11:44:13 AM »

This doesnt fit the normal request responce process in datapower. You may be able to do it but it would not be simple and would not work throught the normal backend process.
Logged
Guillermo
Newbie
*
Offline Offline

Posts: 3


View Profile Email
« Reply #3 on: May 26, 2008, 03:18:12 PM »

I guess a naive workaround to this problem is to crete a service that reads 1 message(A). Then create another (B) one that consumes (A) 3 times storing the results in variables for future manipulation. The proccess wil consist in putting the 3 messages in a queue ((A) will get them), but B will be listening in a diferent one, so when you finish putting the 3 messages you will send a dummie one informing B to start his "orchestration". If more than 3 messages are put in A´s queue you ´ll probably have to manipulate the Back End URL during runtime or something to retrieve the messages by id (informated in the dummie perhaps). This is only one opinion but the bottom line is that you ´ll have to start playing with the different tools.

Hope it helps.
Logged
AltafH
Newbie
*
Offline Offline

Posts: 1


View Profile Email
« Reply #4 on: July 03, 2008, 04:35:21 AM »

I think your pattern would be quite difficult to implement using DP. You are better of using Message Broker for that kind of pattern
Logged
wsguy4
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #5 on: July 10, 2008, 06:35:48 PM »

Actually it is very simple to do this in Datapower using a new feature called "event sync.
The pattern you are dealing with is called Basic callback pattern or in laymans workd "asynchronous request response" but in your case you are sending more than one response. Ideally, from design perspective, these responses should be aggregated before sent to datapower unlesss they are coming from 3 diferent sources.
In traditional MQ world, the correlation id on these responses can be used to correlate them with a request. But if you have more than 1 response, that creates complexity even if you use Message Broker since you have to customize your replay pattern.

Since your responses are asynchonous, you could setup a 2nd MultiProtocol Gateway on back of first MPG (that is bridging the protocol) to use more than one Front Side Protocol Handler polling a range of queues. Then in your policy, you can aggregate these messages using whatever mechanism (variables, stylesheet etc) and then drop the response message with appropriate Cororelation id on the reply queue of the first MPG.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  



Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Seo4Smf © Webmaster's Talks
This Site is not associated with IBM