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 » http and MQ protocol combination scenario

Post new topic  Reply to topic
 http and MQ protocol combination scenario « View previous topic :: View next topic » 
Author Message
aggarwal.intouch
PostPosted: Wed Oct 02, 2013 8:12 pm    Post subject: http and MQ protocol combination scenario Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Hi Experts,

I have a requirement where I will receive message @ http node, save headers, attach MQ headers (new), send to downstream system. When I will get the response back I will have to attach those headers back based on the correlation id.

Request and Response flow is somewhat like this:

Request Flow:

http input -> attach MQ headers -> save http headers in MQ headers and remove http headers -> Save MQ headers (to corelate with response) -> send to downstream system

Response Flow:

MQ Input (response received) -> MQ get node (Corelate response and attach MQ headers) -> copy request http headers -> remove MQ headers -> http reply

Query:
1. How and where can I save http headers in MQ headers?


Please suggest.
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Oct 02, 2013 9:48 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This is a common question and can be solved with a simple Aggregation setup. Search this forum for this and you will see how it can be done. I think that there is even a sample aggregation flow that you can import into your TK and modify to your hearts content.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Simbu
PostPosted: Thu Oct 03, 2013 12:08 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Have a look at built-in pattern "Service Facade to WebSphere MQ: request-response pattern".
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.pattern.sen.doc/sen/sf/synchmq/overview.htm
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Thu Oct 03, 2013 1:03 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Simbu wrote:
Have a look at built-in pattern "Service Facade to WebSphere MQ: request-response pattern".
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.pattern.sen.doc/sen/sf/synchmq/overview.htm


In the given link in point-6 of the request flow "6.A message to store the SOAP reply identifier is set up. The message identifier that is generated for the outgoing message is retrieved from the written destination data in the local environment, and is used in the MQMD correlation identifier; the SOAP reply identifier is retrieved from the local environment and is used as the body of the message. This data is written to an internal queue."

I am not able to locate the SOAP reply identifier in my incoming message. My request is coming from http input node.
Back to top
View user's profile Send private message Send e-mail
Simbu
PostPosted: Thu Oct 03, 2013 1:13 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

aggarwal.intouch wrote:
Simbu wrote:
Have a look at built-in pattern "Service Facade to WebSphere MQ: request-response pattern".
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.pattern.sen.doc/sen/sf/synchmq/overview.htm


In the given link in point-6 of the request flow "6.A message to store the SOAP reply identifier is set up. The message identifier that is generated for the outgoing message is retrieved from the written destination data in the local environment, and is used in the MQMD correlation identifier; the SOAP reply identifier is retrieved from the local environment and is used as the body of the message. This data is written to an internal queue."

I am not able to locate the SOAP reply identifier in my incoming message. My request is coming from http input node.


The pattern is for Soap Nodes. Instead of the "SOAP reply identifier", you can store your own data.All you need to do is change the flow as per your requirement.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Thu Oct 03, 2013 1:18 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Simbu wrote:
The pattern is for Soap Nodes. Instead of the "SOAP reply identifier", you can store your own data.All you need to do is change the flow as per your requirement.


For HTTP reply what all request parameters should be saved so that reply move to correct requestor?
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Oct 03, 2013 1:35 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

aggarwal.intouch wrote:


For HTTP reply what all request parameters should be saved so that reply move to correct requestor?


What headers come with the HTTP Nodes?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » http and MQ protocol combination scenario
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.