Posted: Fri Mar 05, 2004 4:11 am Post subject: MQRFH2 Header problem
Newbie
Joined: 29 Aug 2001 Posts: 7
hi,
I am working on WBI MQ and I am facing a problem in setting message header.
I have setup a message flow which start with MQINPUT node then compute node then MQREPLY node I am putting a XML message in a input node and then setting some data in MQRFH2 header and then msg should goes to mqreply node.
Following is the code
Mqinput------>Compute---->MQreply
REATE COMPUTE MODULE PingResponder_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
SET OutputRoot.MQMD.Format = 'MQRFH2 ';
SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR ';
SET OutputRoot.MQRFH2.usr.MsgType = 'TOSS';
SET OutputRoot.XML.TEST.Name = 'SEKHAR';
SET OutputRoot.XML.TEST.Number = '125';
RETURN TRUE;
END;
but when I try to see the msg using RFHUTIL in the reply Q msg doesn;t come it remains in Input Q. but when I comment out all the Header related information i.e first four lines in the code it works fine and i can see the XML string in the reply Q. So something is going wrong in compute node when I try to chage header information.
could someone suggest me what is wrong with the code ?
Please post a trace of your message WITH the generated RFH2 header, using a trace node placed before your MQReply node. _________________ I am *not* the model of the modern major general.
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