|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Validation of XML |
« View previous topic :: View next topic » |
Author |
Message
|
madi |
Posted: Tue Mar 07, 2006 2:41 pm Post subject: |
|
|
 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 |
|
 |
vk |
Posted: Tue Mar 07, 2006 3:51 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Mar 07, 2006 6:18 pm Post subject: |
|
|
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 |
|
 |
madi |
Posted: Tue Mar 07, 2006 6:58 pm Post subject: |
|
|
 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 |
|
 |
|
|
|
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
|
|
|
|