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 » Problem with MQRFH2 Header in WMQI

Post new topic  Reply to topic
 Problem with MQRFH2 Header in WMQI « View previous topic :: View next topic » 
Author Message
chandrasekhar_p
PostPosted: Fri Jan 23, 2004 10:08 pm    Post subject: Problem with MQRFH2 Header in WMQI Reply with quote

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
View user's profile Send private message
Testo
PostPosted: Fri Jan 23, 2004 11:36 pm    Post subject: Look at this... Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

I had a similar problem, please have a look at this post http://www.mqseries.net/phpBB2/viewtopic.php?t=12194&highlight= and check if you are able to solve your problem....

HTH
Testo

Andrea Tedone
IBM Italy
Back to top
View user's profile Send private message Send e-mail MSN Messenger
chandrasekhar_p
PostPosted: Fri Jan 23, 2004 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Testo
PostPosted: Fri Jan 23, 2004 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
EddieA
PostPosted: Fri Jan 23, 2004 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
chandrasekhar_p
PostPosted: Sat Jan 24, 2004 12:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Missam
PostPosted: Sat Jan 24, 2004 6:00 pm    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Are you missing Properties Header.
Back to top
View user's profile Send private message
EgilsJ.Rubenis
PostPosted: Tue Jan 27, 2004 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem with MQRFH2 Header in WMQI
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.