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 » XML structure validation against a schema

Post new topic  Reply to topic
 XML structure validation against a schema « View previous topic :: View next topic » 
Author Message
fitzcaraldo
PostPosted: Tue Apr 18, 2006 11:46 pm    Post subject: XML structure validation against a schema Reply with quote

Voyager

Joined: 05 May 2003
Posts: 98

I'm trying to explore what happens when we have different versions of a given XML message passing between flows.

I have created an MRM message set from a given version of the schema. A flow is specifying that message on the input node. Validation is turned off on the input node.

If I then hack the XML message going into that flow by adding a few more fields (that will by definition not appear in the message set - but is still well formed) I was expecting the flow to throw a ParserException - but it doesn't.
If I turn validation on it does but I was expecting the structure to be validated even with validation turned off - as it does for CWF message. Is this the expected behaviour?
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 19, 2006 1:10 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
If I turn validation on it does but I was expecting the structure to be validated even with validation turned off - as it does for CWF message. Is this the expected behaviour?
Of course. It would be rather unhelpful for the XML parser to validate against the message set regardless of the validation switch!
MRM parsers throw two kinds of exception - parsing exceptions and validation exceptions. Validation exceptions are only ever thrown when validation is enabled.
The CWF parser is not doing validation - it throws a parsing exception when it cannot possibly parse the incoming message. The XML parser follows the same rule. If you give it a badly-formed XML document it throws a parsing exception.
You tend to get more parsing exceptions from CWF than from XML because XML is a very easy language to parse.
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 » XML structure validation against a schema
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.