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 » Accessing the usr header

Post new topic  Reply to topic
 Accessing the usr header « View previous topic :: View next topic » 
Author Message
dextermbmq
PostPosted: Sat Jul 26, 2014 12:08 pm    Post subject: Accessing the usr header Reply with quote

Voyager

Joined: 26 Jul 2014
Posts: 77

Hi All,

I am new to MB and I am writing a code where I have to access a field in usr header. The corresponding code I am using here is :

"SET type=InputRoot.MQRFH2.usr.Transaction_Type;"

However, when the flow runs , it is not accessing the value from usr header and "type" variable still remains as blank.



Also I am using RFHUTIL to add the "usr" header :

1)Under RFH Tab and V2 column, I am selecting the "usr" checkbox.

2)Under usr tab I am entering the following text as a part of usr header :

<Source>Source2</Source>
<Transaction_Type>Invoice<Transaction_Type>

Kindly Assist.

Thanks in advance
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 27, 2014 12:48 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

If you use usertrace, the output log will tell you exactly which element in the
Code:

SET type=InputRoot.MQRFH2.usr.Transaction_Type;


is failing.

However I suspect that you may not be setting up RFHUTIL correctly in the first place.
The MQMD.Format must tell MQ that there is an RFH2 header to follow.
Then the RFH Format field should be set to MQSTR to tell MQ that what follows is the message payload.

A good tip is to put a Trace Node after the MQUnput node, set the pattern to
Code:

${Root}

and once again use usertrace and you will easily see how the input message is being parsed by the input node.

Give it a try. Learning to use usertrace at this stage will save you a lot of time and trouble later on. There are limits to what the debugger can and can't do.
_________________
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing the usr header
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.