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 » Validation and Message Type

Post new topic  Reply to topic
 Validation and Message Type « View previous topic :: View next topic » 
Author Message
malammik
PostPosted: Tue May 10, 2005 9:39 am    Post subject: Validation and Message Type Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

I am building a couple of XML based message sets that I would like to be validated. My message set contains Msg1, 2, and so on.
On then input node, I specify message set, format but leave the type blank and I turn on complete validation.

If I put in the message <Msg1></Msg1>, Broker validation automatically knows which message type I am putting in and attempts to validate the data against Msg1.

Although this is great but is this the intended behavior? Is this how validation works? If not then, how does it know against which message type to validate if I leave it blank? One answer that comes to mind is the mcd rfh2 folder but what about if that's blank too if message came from non rfh2 aware application.



Cheers.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Tue May 10, 2005 9:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQInputNode properties are only DEFAULT, not required or overwrites.

If you put an XML message to a queue that has an MQInput node that is set to use the BLOB domain - and that message has a valid MQRFH2 that indicates that the message is in the XML Domain - then you will have InputRoot.XML, not InputRoot.BLOB.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Tue May 10, 2005 10:23 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Maybe I did not explain myself clearly so let me try again.

Input Node has Message Set: mrm:foo
Format: XML
Message Type: blank
Validation: complete

There are three different message types in the message set foo. How does validation routine know which message to validate data against?

Thanks a bunch.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Tue May 10, 2005 11:11 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

malammik wrote:
There are three different message types in the message set foo. How does validation routine know which message to validate data against?


The MQRFH2.

Or maybe it can match the root tag.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shanson
PostPosted: Mon May 16, 2005 6:33 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Jeff is correct. When using MRM domain, the Message Type property is used to locate the correct message in the dictionary. For CWF and TDS, the Message Type is mandatory (ie, it must be given either in the RFH2 or on the node). For XML the Message Type is effectively optional, because the parser falls back to using the root tag as the Message Type.
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 » Validation and Message Type
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.