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 of XML

Post new topic  Reply to topic Goto page Previous  1, 2
 Validation of XML « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Tue Mar 07, 2006 2:41 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

So i have created different msgsets for diff msgs.

my flow looks like this:

MQInput(taking in as XML) --> Compute (routing) --> RouteToLabel

Label1 ---> ResetContentDiscriptor(to msgset and type) --> Check Node (check the structure of the xml against the MsgDefFile created from schema) ---> compute -------- and other things

So assuming all this is OK to do. I am not able to validate the xml.

I deleted a required field in the input xml and still the transaction takes place.

Does Check node validate the structure? Is there any other node I can use?

plz help
madi
Back to top
View user's profile Send private message
vk
PostPosted: Tue Mar 07, 2006 3:51 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

When you use a ResetContentDescriptor node, the message will be reparsed.

If you have set the minOccurs for the element to 1 in the XML message set, then an error will be thrown when the element is accessd in the flow.

You dont have to use a Check node. It will vlidate only the Message Set name, Message Type, Message Domain and Message Fprmat. It will not validate the message properties.

In WBI MB 6.0, there is a validate node available to invoke the parser at any point in a message flow.

Regards,
VK.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 07, 2006 6:18 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

vk wrote:
When you use a ResetContentDescriptor node, the message will be reparsed.


I think this is not true. I think the RCD will only change things so that the new parser information will be used the next time the data gets parsed. It won't force a parse in any way.

Enabling full validation on a compute node after an RCD will do the trick, certainly.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Mar 07, 2006 6:58 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

yeah, the message is not getting reparsed at the RestContenDescritor node.

It worked when i put a comput node and just copied the message and then said validate.

Thanks Jeff and everyone else, youve all been very helpful
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Validation of XML
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.