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 » Regarding xml file validation

Post new topic  Reply to topic
 Regarding xml file validation « View previous topic :: View next topic » 
Author Message
Srinu
PostPosted: Tue Apr 11, 2006 5:53 am    Post subject: Regarding xml file validation Reply with quote

Acolyte

Joined: 15 Jun 2005
Posts: 51

Hi,

In my present flow I am using a validate node to validate the input file. My flow design is

MQInputNode-->Compute Node-->Validate-->Further processing of message.

In the compute node, I insert the incoming xml file as blob into database and then the file is to be valid with the domain, message set and type specified in the validate node. If the given file is valid the message should go through match terminal to the downstream of nodes for further processing else the message should go thru failure terminal of validate node for error handling.
If I give an invalid input file, the message is going thru match terminal instead of failure terminal. So help me out to solve this.

Regards,
Srinu
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Apr 11, 2006 6:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The most likely reason is that the message is never being parsed ( because your message flow never accesses any fields within the body of the message). Set Validation Timing to 'Complete' to force a parse.
Back to top
View user's profile Send private message
Srinu
PostPosted: Tue Apr 11, 2006 7:05 am    Post subject: Reply with quote

Acolyte

Joined: 15 Jun 2005
Posts: 51

Hi kimbert,
Thanks for ur reply. I want to accept any messsage in the input node and then insert the message into the database and then I want to validate the message with the properties specified in validate node. But if I specify the property which u have mentioned to set in MQInput node, then the flow is not accepting any invalid message but this is not my requirement.

Thanks,
Srinu
Back to top
View user's profile Send private message
madi
PostPosted: Tue Apr 11, 2006 7:26 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Im on 5.0 and I dont have a validate but I have a RCD.

The way I do this is use RCD to change the properties and then use a compute (just copy the message) and set validate properties there.

May be you have some other node in v6.0 which can get rid of this extra step.

--madi
Back to top
View user's profile Send private message
SpitFire
PostPosted: Tue Apr 11, 2006 9:08 pm    Post subject: Re: Regarding xml file validation Reply with quote

Acolyte

Joined: 01 Aug 2005
Posts: 59
Location: India

Srinu wrote:

In my present flow I am using a validate node to validate the input file. My flow design is

MQInputNode-->Compute Node-->Validate-->Further processing of message.

In the compute node, I insert the incoming xml file as blob into database and then the file is to be valid with the domain, message set and type specified in the validate node.


With reference to whatever you have specified, I presume that your MQInput node is configured to accept messages of type 'XML', and in the compute node after inserting the data into the database as per your requirement, you change the "domain", "format", and "type".
I would like to take a small divertion here. If in case, the second step of the compute node I have mentioned here isn't done, then I doubt if your validate node would work at all. It might all the time, route the msg to failure terminal.
On the other hand, if everything is done perfectly, I see no problems in the flow.
I checked with a similar kind of flow. I sent a valid XML and then passed through an RCD and then tried to validate it. It succeeded. On the other hand, if any of the tags are missing, violating the message structure designed, or if some constraint is violated, then the validate node, fails the message.
If required, I can send the flows and msg sets to you.
_________________
...: 5|71+ph1|23 :...
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 12, 2006 12:13 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
But if I specify the property which u have mentioned to set in MQInput node, then the flow is not accepting any invalid message
If you are on v6, the RCD node has a 'Parse Timing' property under 'General Message Options'. Set this to 'Complete'.
If you are on v5, I'm not sure whether the RCD node has a timing control - but you can check it out.
Back to top
View user's profile Send private message
SpitFire
PostPosted: Wed Apr 12, 2006 3:42 am    Post subject: Reply with quote

Acolyte

Joined: 01 Aug 2005
Posts: 59
Location: India

kimbert wrote:
If you are on v6, the RCD node has a 'Parse Timing' property under 'General Message Options'. Set this to 'Complete'.

I guess the default value for this property is 'on Demand'; I had worked with only that set and it seems to work fine so far, for the scenario in question.
_________________
...: 5|71+ph1|23 :...
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 » Regarding xml file 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.