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 IndexWebSphere Message Broker SupportSending a unique transaction Id from one flow to another

Post new topicReply to topic
Sending a unique transaction Id from one flow to another View previous topic :: View next topic
Author Message
akashdwolf
PostPosted: Fri Feb 15, 2019 2:37 pm Post subject: Sending a unique transaction Id from one flow to another Reply with quote

Apprentice

Joined: 09 Feb 2017
Posts: 28
Location: Mumbai

Hi Folks,
I have 2 flows as below:
Flow 1:MQInput -compute-SOAPRequest-(further processing)
Flow2 :SOAPInput-compute-SOAPReply.

Flow1 is calling flow2.
Now we need to maintain the some unique transactionId which should be same for both the flows.

I tried sending the MQMD.mesageId of Flow1 to Flow2 using the below line:
Set OutputRoot.HTTPRequestHeader.uniqueid=InputRoot.MQMD.MsgId;

Flow1 is sending this header to Flow2 but Flow2 is not able to receive the header and it is creating a new set of HTTPRequest headers.

I can send this as a part of request Payload but it will be a change in the request which I am not allowed.

Is there any other option to achieve this?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 15, 2019 6:12 pm Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20021
Location: LI,NY

Have you tried using a SOAP Header for that, and returning that same SOAP Header on the SOAP Response?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
akashdwolf
PostPosted: Sat Feb 16, 2019 1:55 am Post subject: Reply with quote

Apprentice

Joined: 09 Feb 2017
Posts: 28
Location: Mumbai

Thanks for replying fjb,
I have found the solution now.

Actually I did correct thing in the first flow:
Set OutputRoot.HTTPRequestHeader.uniqueid=InputRoot.MQMD.MsgId;

But now I have found out that when it goes to second flow then uniqueid is received as Uniqueid(first alphabet changed to uppercase) so I am able to capture this in the second flow now .
It comes in the below tree:
InputRoot.HTTPInputHeader.Uniqueid

Maybe this is how the message flow functions for a custom header. But please let me know if you see any drawback in this solution.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportSending a unique transaction Id from one flow to another
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.