|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Validating from an XSD file |
« View previous topic :: View next topic » |
Author |
Message
|
Gideon |
Posted: Thu Jun 30, 2011 4:09 pm Post subject: Validating from an XSD file |
|
|
Chevalier
Joined: 18 Aug 2009 Posts: 403
|
I have 3 XSD files (the 3 XSD's together define a single XML structure)
I want to build a flow that will validate from them
I assume I need to create a Message Definition file from the XML Schema file.
Assuming that is correct, can the import tool handle more than one XSD file that defines a single XML file ? How would I do that ? |
|
Back to top |
|
 |
Gideon |
Posted: Thu Jun 30, 2011 4:10 pm Post subject: |
|
|
Chevalier
Joined: 18 Aug 2009 Posts: 403
|
The import tool appears to only allow a single XSD file. Am I missing something here |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jun 30, 2011 9:33 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Yes you are missing something, well maybe
Here's how I do it.
a) Import the files into the project
b) Make sure the import/include statements all refere to the other xsd's. They use a relative not absolute address. (../../../mydir/mysxd/mysxd.xsd)
c) Then select the main XSD, right click and select create new message def from XSD.
This step will do all the hard work for you provided the import/includes all work properly.
a separate .mxsd file will be created for each xsd used.
My guess you are trying to create the message def using an external source.
As with most things related to broker there is often at least two ways to do pretty well everything. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
kimbert |
Posted: Sat Jul 02, 2011 10:29 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Here's how I do it.
a) Import the files into the project
b) Make sure the import/include statements all refere to the other xsd's. They use a relative not absolute address. (../../../mydir/mysxd/mysxd.xsd)
c) Then select the main XSD, right click and select create new message def from XSD.
|
That way will work, but there is an even easier way.
Just use the command line tool mqsicreatemsgdef. It will import a set of related xsds and will ensure that their import/include directives are fixed up. Unfortunately, the fix-up does not happen when you import the xsds one by one using the wizard in the toolkit. |
|
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
|
|
|
|