Author |
Message
|
chandrasekhar_p |
Posted: Fri Jan 23, 2004 10:08 pm Post subject: Problem with MQRFH2 Header in WMQI |
|
|
Newbie
Joined: 23 Jan 2004 Posts: 3
|
Hi All,
I have a simple Message Flow.
I get an XML Message in the Input Queue. I should add MQRFH2 Header
to the Output Message and Populate a Variable in the 'usr' folder of the
RFH2 Header and send it out.
This is how I am doing it...
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';
I am expecting an XML Message in the Output Queue with the RFH2 Header. But the Output XML Message is not getting properly constructed.
This the Output XML Message :
RFH ....l..."...µ...MQSTR ....¸...$...<usr><MsgType>TOSS</MsgType></usr> ....<mcd><Msd>xml</Msd></mcd>
<TEST><Name>SEKHAR</Name><Number>125</Number></TEST>
Why is the Output XML Message not getting constructed properly...?
Knife is on my neck....plz bring me out asap..  |
|
Back to top |
|
 |
Testo |
Posted: Fri Jan 23, 2004 11:36 pm Post subject: Look at this... |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
|
Back to top |
|
 |
chandrasekhar_p |
Posted: Fri Jan 23, 2004 11:44 pm Post subject: |
|
|
Newbie
Joined: 23 Jan 2004 Posts: 3
|
Hi Testo,
I am using MQExplorer to see the Message. I am getting the message in
the Proper Order but my concern is with this Garbage
[color=brown]RFH ....l..."...µ...MQSTR ....¸...$...[/color]<usr><MsgType>TOSS</MsgType></usr>
that is preceeding the <usr> Tag. How do I bypass that.
And also is it correct to use MQExplorer to view a Message with RFH2 Header.
Thanks for the response,
Sekhar |
|
Back to top |
|
 |
Testo |
Posted: Fri Jan 23, 2004 11:49 pm Post subject: |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
I think that the 'garbage' you are talking about is the MQ standard header (MQMD) so probably you are seeing it because you are displaying both the body of your message (the XML TEST) and the headers (MQMD and RFH2).
I would not mind about that 'garbage'.... but maybe someone else can confirm my thoughts??!!
Have you tried to use this message for your scope to verify if it is accepted correctly?
Cheers,
Testo |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jan 23, 2004 11:50 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
If you are only using the MQExplorer, what makes you think the message is 'wrong'. The MQExplorer treats the RFH2 header as part of the payload. It does not try and interpret it.
You need some viewer that 'understands' the additional headers. Probably Roger will jump in here and suggest his.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
chandrasekhar_p |
Posted: Sat Jan 24, 2004 12:19 am Post subject: |
|
|
Newbie
Joined: 23 Jan 2004 Posts: 3
|
Very sorry for that rude term 'Gar%$#'...I take it back...
Thank you very much for all the support...
I used a tool called RFHUTIL...this bifurcated the MQMD Header and RFH2 Header. But the tool dint show me the <mcd> folder.
So Now how do I ensure that the End Application is able to read and
interpret my Message with RFH2 Header and value in usr folder...??
And..will there be any issue with the StrucLength field...? I am not setting it while constructing the Header.
My Destination Application is on Unix....so do I need to set any Encoding and CCSID or will WMQI take care of it?
Regards,
Sekhar |
|
Back to top |
|
 |
Missam |
Posted: Sat Jan 24, 2004 6:00 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Are you missing Properties Header. |
|
Back to top |
|
 |
EgilsJ.Rubenis |
Posted: Tue Jan 27, 2004 2:06 am Post subject: |
|
|
Acolyte
Joined: 18 Nov 2002 Posts: 63 Location: Germany, Alfeld
|
Hi,
i'm working with RFH2-Header coming from z/OS (formerly OS390). I'm genereting a RFH2 Header in a CicsTxn passing informatione back into a messageflow. it works fine until not sending the data (including rfh2-header) tio a SunSolaris System. There is a bug in the system.
For Usage of RFH2-Header (coming from z/OS cobol) i'm using the following elements:
- MQRFH-STRUCLENGTH
- MQRFH-NAMEVALUE (includes the data)
- MQRFH-NAMEVALUELENGTH (the data length)
regards egils |
|
Back to top |
|
 |
|