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 » Validating from an XSD file

Post new topic  Reply to topic
 Validating from an XSD file « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Thu Jun 30, 2011 4:09 pm    Post subject: Validating from an XSD file Reply with quote

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
View user's profile Send private message Send e-mail
Gideon
PostPosted: Thu Jun 30, 2011 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Jun 30, 2011 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Sat Jul 02, 2011 10:29 am    Post subject: Reply with quote

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
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 » Validating from an XSD file
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.