|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Different Xml input file and different XSD for single queue |
« View previous topic :: View next topic » |
Author |
Message
|
Harshalw |
Posted: Mon Dec 08, 2008 12:29 am Post subject: Different Xml input file and different XSD for single queue |
|
|
Voyager
Joined: 23 Jul 2008 Posts: 77
|
I have a change request in which same queue will be getting different xml and there a different XSD for the same. I need to validate all the xml files, Is that possible in WMB 6.1 using single input queue ? if so please let me know how. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Dec 08, 2008 2:15 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Anything is possible
When you say 'different XSD' do you really mean 'different .xsd file' or just a different root tag name? I am assuming that these messages will share some common type/element definitions.
Your options are:
a) create one message set, and import all of the XSDs into it. The XMLNSC parser will pick the correct message definition based on the root tag name.
b) if the source application knows the name of the message set, or the name of the root tag, then create a different message set from each xsd, and pass in the appropriate message set name in the <set> tag of an MQRFH2 mcd folder.
a) is obviously the best option, and is probably what you want.
I strongly recommend that you use XMLNSC, not MRM for parsing and validating the XML. |
|
Back to top |
|
 |
Harshalw |
Posted: Mon Dec 08, 2008 3:25 am Post subject: |
|
|
Voyager
Joined: 23 Jul 2008 Posts: 77
|
Thanks Jedi, yes option a > is easier one , will try for that . |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|