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 » How to enforce parser to adhere to message set?

Post new topic  Reply to topic
 How to enforce parser to adhere to message set? « View previous topic :: View next topic » 
Author Message
ayanc
PostPosted: Thu Jun 02, 2005 8:15 pm    Post subject: How to enforce parser to adhere to message set? Reply with quote

Voyager

Joined: 15 Nov 2004
Posts: 88

Hi All,

I have modelled my message set as follows:

<?xml version="1.0"?>
<Lib>
<Book>
<Title>The Adventures of Tom Sawyer</Title>
<Author>Mark Twain</Author>
<Publisher>McMillan India Pvt. Ltd.</Publisher>
</Book>
<Audio>
<VCD>
<Title>The Best Of Me</Title>
<Singer>Bryan Adams</Singer>
</VCD>
<DVD>
<Title>The Party Album</Title>
<Singer>Vengaboyz</Singer>
<Price> Rs. 400 </Price>
</DVD>
</Audio>
</Lib>

How do I make my parser to adhere to the message set? In other words I would like to see the message fail if it doesnt adhere to the message set definition.

The problem I am facing is as follows:

If in the above message I modify the VCD data as below:


<VCD>
<Title>The Best Of Me</Title>
<Singer>Bryan Adams</Singer>
<Tag>0987</Tag>
</VCD>


I find that the message is going to the output node!!! As the element Tag is not defined in the message set at all .... I thought it should go to the failure queue.

Is it possible to enforce the parser to adhere to the message set?

I am using WMQI 2.1 CSD 07.

Thanks in advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jun 03, 2005 1:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Switch on validation in the Input node or Compute node properties of your message flow. Make sure that all your compound types have their 'Type Content' property set to 'Closed' - otherwise their content will not be validated.
Back to top
View user's profile Send private message
ayanc
PostPosted: Fri Jun 03, 2005 2:10 am    Post subject: Reply with quote

Voyager

Joined: 15 Nov 2004
Posts: 88

Hi Kimbert,

Thanks for your reply. It is working fine.
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 » How to enforce parser to adhere to message set?
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.