Posted: Thu Sep 03, 2009 7:40 am Post subject: MQInput Validation
Apprentice
Joined: 17 Aug 2009 Posts: 36
All,
I have a message flow with a MQInput node where validation is set to “Content and Value” and “Exception List” on XMLNSC domain. Soon after the MQinput node I have an Error Handler with
1. Filter – to check the backout count
2. TryCatch
3. TryCatch Catch Terminal - Compute node – Loop through the Exception list to locate the error and send the error response to consumer
4. TryCatch Try Terminal back to main flow
I have wired Failure and Output terminal of MQInput node to this error handler and wondering if it is a good practice.
Secondly If I pass an invalid XML file, MQInput node still passes the message through the flow tho the Validation is turned on. I expected it to go through the Failure terminal and get filtered from the error handler but it goes through the Output terminal. Message continues through the flow and fails halfway when the flow logic doesn’t match with the XML tree. But I need to catch this at very early stage. Any ideas
Have you imported your xsd and specified it in the MQInput node? Have you checked out other recent posts on this topic?
I've seen error handling done in a few different ways in terms of how terminals are wired up. I'm not aware of a best practice, and I'm afraid the only way to get it right is to do the reading and fully understand the implications of wiring or not wiring terminals.
Quote:
I have wired Failure and Output terminal of MQInput node to this error handler and wondering if it is a good practice.
The Output terminal wired to the error handler? That sounds unusual ...
Set 'Parse Timing' to 'Immediate'. The default is 'On Demand'. Your flow does not require any access to the parsed data until it gets to the output side, so no parsing ( and therefore no validation ) is taking place
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