|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
String to Message help...please |
« View previous topic :: View next topic » |
Author |
Message
|
jayffic |
Posted: Fri Mar 14, 2003 7:07 pm Post subject: String to Message help...please |
|
|
Novice
Joined: 12 Mar 2003 Posts: 12
|
I have a string that represents a message that I want to output.
I output the string in a compute node to an MRM with the identifier and message id. Like this:
SET OutputRoot.MRM
= "InputBody"."CC"."CCMESSAGE"
I created and imported the message the same way that I did for other messages that I know work.
I am using the copy message headers radio button.
I know the message set is spelled correctly.
Other settings are:
MessageFormat = 'CWF'
MessageSet = 'DQQKV5G07O001'
And, although may not matter:
CodedCharSetID = 500
Encoding = 785
When WMQI tries to put the message to the queue, it receives an error:
Message Id not in Custom Wire Format File: message set 'DQQKV5G07O001'; message 'UNDEFINED'; parent element '%6'; current element '%7'; function name 'CWFWorker::write'; error code '0'.
When parsing an MRM, Custom Wire Format message the broker requires a valid message set identifier and a valid Custom Wire Fomat identifier. The MessageId was not found in the Custom Wire Format File.
What the heck? Everything is in place as far as I can tell.
Thanks in advance. |
|
Back to top |
|
 |
kirani |
Posted: Fri Mar 14, 2003 9:59 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Well, everything is not correct, that's why it's failing.
First, You must use MRM element name when assigning value using SET command.
so your statement
Code: |
SET OutputRoot.MRM = "InputBody"."CC"."CCMESSAGE";
|
will change to,
Code: |
SET OutputRoot.MRM.STRING_FIELD_NAME = "InputBody"."CC"."CCMESSAGE";
|
Second, You need to specify Message Set properties into Properties folder,
Code: |
SET OutputRoot.Properties.MessageSet = 'DQQKV5G07O001';
SET OutputRoot.Properties.MessageFormat = 'CWF';
SET OutputRoot.Properties.MessageType = 'm_String_Message'; -- Replace this will correct name, you were missing this property
|
Similarly, Use following for data conversion,
Code: |
SET OutputRoot.Properties.CodedCharSetId = 500;
SET OutputRoot.Properties.Encoding = 785;
|
Hope this helps. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|