Author |
Message
|
aggarwal.intouch |
Posted: Wed Oct 02, 2013 8:12 pm Post subject: http and MQ protocol combination scenario |
|
|
 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 |
|
 |
smdavies99 |
Posted: Wed Oct 02, 2013 9:48 pm Post subject: |
|
|
 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 |
|
 |
Simbu |
Posted: Thu Oct 03, 2013 12:08 am Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Thu Oct 03, 2013 1:03 am Post subject: |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
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 |
|
 |
Simbu |
Posted: Thu Oct 03, 2013 1:13 am Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
aggarwal.intouch wrote: |
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 |
|
 |
aggarwal.intouch |
Posted: Thu Oct 03, 2013 1:18 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Thu Oct 03, 2013 1:35 am Post subject: |
|
|
 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 |
|
 |
|