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 » Create Message Set from XSD

Post new topic  Reply to topic
 Create Message Set from XSD « View previous topic :: View next topic » 
Author Message
gaurav.udgir
PostPosted: Mon May 18, 2009 2:12 am    Post subject: Create Message Set from XSD Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Hi All,

I am trying to create a message set from a XSD (XML Schema) file. My XSD file in turn uses few other XSD files. Could you please help me in this issue?

Thank you in advance.

Regards,
Gaurav
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Mon May 18, 2009 2:14 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

What happended when you used the message set generation wizard in the toolkit?

This sounds straight forward enough....
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon May 18, 2009 2:15 am    Post subject: Re: Create Message Set from XSD Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

gaurav.udgir wrote:
Could you please help me in this issue?


Help with what? What did you do to create the message set? Based on what advice from the documentation? On the assumption you wouldn't have posted if it worked, what happened? What error messages were thrown? How have you tried to resolve the problem (there's no point us suggesting something which has already failed)?

What version of WMB? What version of Toolkit? On what OS?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gaurav.udgir
PostPosted: Mon May 18, 2009 2:29 am    Post subject: Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Hi,

I tried to create the message set using:

File - Message Definition File From - XML Schema File

Then I selected the main XSD file which in turn is calling the other XSD files.

After getting the message set I got the following errors:

'Element reference '#FieldName' cannot be resolved.'

Thank you.

Regards,
Gaurav
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon May 18, 2009 2:34 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

When you have a set of interconnected schemas you should always use the command-line tool mqsicreatemsgdefs. It will automatically fix up the scheme import/include directives as part of the import.
Back to top
View user's profile Send private message
gaurav.udgir
PostPosted: Mon May 18, 2009 3:05 am    Post subject: Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Hi kimbert,

Thank you for teh suggestion but unfortunately its not working.

I tried to use the command:

mqsicreatemsgdefs -p newproject -d c:\myproject\source -data C:\WorkSpace_Temp -ns -rmd -rmp

Error Message:

A Message Set can not contain two global element declarations with the same name and namespace (target or chameleon): <fieldname><mxsd filename>
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon May 18, 2009 3:14 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

This is your problem, not a problem with the tool. Either
a) fix your schemas and remove the duplicate declaration or
b) ensure that directory 'c:\myproject\source' contains only the files that you need to import.
Back to top
View user's profile Send private message
gaurav.udgir
PostPosted: Mon May 18, 2009 3:45 am    Post subject: Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Hi Kimbert,

Yes you were correct. There were some XSDs which were not used. After using only the required ones I was able to get it successfully. But after that for each XSD I got a message definition file and in that message is empty. I am only getting the Elements field which is filled with data.

Am I missing out something?

Thank you in advance.

Regards,
Gaurav
Back to top
View user's profile Send private message
gaurav.udgir
PostPosted: Mon May 18, 2009 4:03 am    Post subject: Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Also to add: Type field is also empty for the message set definition file.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon May 18, 2009 9:59 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Am I missing out something?
Yes. There is no such thing as a 'message in XML Schema so the importer cannot automatically create messages. You have to tell the importer which global elements should be messages. Or if you prefer, you can right-click any global element and select 'Create message'.

If 'Types' is empty, that is probably OK. Maybe your schemas do not define any global types.
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 » Create Message Set from XSD
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.