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 IndexWebSphere Message Broker (ACE) SupportMQInput Validation

Post new topicReply to topic
MQInput Validation View previous topic :: View next topic
Author Message
latitude
PostPosted: Thu Sep 03, 2009 7:40 am Post subject: MQInput Validation Reply with quote

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



Your views appreciated

Thanks
Back to top
View user's profile Send private message
Luke
PostPosted: Thu Sep 03, 2009 8:01 am Post subject: Reply with quote

Centurion

Joined: 10 Nov 2008
Posts: 128
Location: UK

Hi,

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 ...
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Sep 03, 2009 8:05 am Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

What version of broker are you on?

XMLNSC is not validating in 6.0.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Sep 03, 2009 9:01 am Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

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
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportMQInput Validation
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.