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 » String to Message help...please

Post new topic  Reply to topic
 String to Message help...please « View previous topic :: View next topic » 
Author Message
jayffic
PostPosted: Fri Mar 14, 2003 7:07 pm    Post subject: String to Message help...please Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Fri Mar 14, 2003 9:59 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » String to Message help...please
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.