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 » WBIMB 5 - XML/mxsd errors

Post new topic  Reply to topic
 WBIMB 5 - XML/mxsd errors « View previous topic :: View next topic » 
Author Message
dmj
PostPosted: Tue Oct 07, 2003 10:03 am    Post subject: WBIMB 5 - XML/mxsd errors Reply with quote

Novice

Joined: 09 Apr 2002
Posts: 19
Location: London

I am having problems with creating an mxsd file from an imported schema.

The following are the steps I took and the files used.

Any help would be appreciated.

Thanks
Dj

----
Steps


Imported all xsd files associated with ct.xsd
Validated ct.xsd using WBIMB - no errors
New Message Definition file for global element ctmsg

Error message

Type 'ctmsg' has an unresolved base type http://xml.nr.co.uk/ns/2003/EAI#Message'

----------
Schema details

The imported schema has a multiple levels with the following structure.

Ct.xsd
No target namespace (imported into namespace itm)
Imports eai.xsd
Global element ctmsg

Eai.xsd
Namespace = http://xml.nr.co.uk/ns/2003/EAI
Includes msg.xsd

msg.xsd
no target namespace
imports nr_2003.xsd
global element Message + others

nr_2003.xsd
Namespace = http://xml.nr.co.uk/ns/2003/NR
Includes nr_types
Only contains the include

Nr_types.xsd

No target namespace
Contains simple types
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Oct 08, 2003 4:20 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I think I've seen this one...

When xsd files get imported into the 5.0 tooling, the directory structure is changed to match the namespace of each file.
e.g. if you import Eai.xsd which has Namespace = http://xml.nr.co.uk/ns/2003/EAI , it will be put into a directory <Message Set Root Directory>/xml/nr/co/uk/2003/EAI
To compensate for this, all <import> and <include> tags are rewritten to point at the correct location. If the imported xsd has no target namespace, it will always be put into <Message Set Root Directory>.

A problem arises when some of the imported schemas <include> noTargetNamespace schemas - the <include> tag does not always get rewritten correctly in this scenario, leading to the task list error which you are seeing.

There's a simple fix -
1. Open the mxsd file(s) which exhibit the problem
2. In the Outline view (lower left), select the root node.
3. Go to the Properties view (upper right), and you should see a list of imports and includes for the mxsd.
4. Delete (right-click and select 'Delete') each erroneous include, and replace it with a correct one (right-click 'Includes' and select 'Add Include').
5. Rebuild the project by selecting menu option 'Rebuild project', with the project root node highlighted in the Resource Navigator (upper left).
Back to top
View user's profile Send private message
dmj
PostPosted: Wed Oct 08, 2003 7:39 am    Post subject: Reply with quote

Novice

Joined: 09 Apr 2002
Posts: 19
Location: London

kimbert,

Thanks very much, worked brilliantly. Now might give some thought as to whether no target namespace is a good idea.

Cheers
DJ
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 » WBIMB 5 - XML/mxsd errors
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.