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 » Message set creation using xsd having complex type def

Post new topic  Reply to topic
 Message set creation using xsd having complex type def « View previous topic :: View next topic » 
Author Message
gunjand
PostPosted: Tue Dec 28, 2010 10:46 am    Post subject: Message set creation using xsd having complex type def Reply with quote

Novice

Joined: 21 May 2009
Posts: 23

Hi,
We are trying to create message set using xsd which has element defined as complex type.

When the message set is created using wizard, it asks to select Types and messages and once created, we can see the message in mxsd is created for complex type as well.

I had couple of questions around it

1. Is this the expected behaviour in Broker?

2. If I validate my xml against this message set, will it fail because it does not find all the message representation?

Broker version: WMB 7
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Dec 28, 2010 10:53 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

So have you actually tried using the message set and validating a message?

If there some reason stopping you from trying it out?
This is all stuff you should have learned as part of some decent training.
_________________
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
gunjand
PostPosted: Tue Dec 28, 2010 11:16 am    Post subject: Message set creation using xsd having complex type def Reply with quote

Novice

Joined: 21 May 2009
Posts: 23

I am doing that parallely..but also wanted to know..if someone has already faced the similar scenario..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Dec 28, 2010 11:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The import wizard specifically asks you WHICH types you want to CREATE messages from.

If it is creating message elements from ALL types it is because you have Selected All types.

It's only expected behavior if you have told it to do so.
Back to top
View user's profile Send private message
gunjand
PostPosted: Tue Dec 28, 2010 11:27 am    Post subject: Reply with quote

Novice

Joined: 21 May 2009
Posts: 23

Agreed. Let me check the other thing on validation front and post.

Thanks Jeff and Davies.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Dec 28, 2010 1:35 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You will discover that XML validation is not affected by the 'message' designation on complex elements or types. In the mxsd file, a 'message' is simply a global complex type definition or global element declaration that has a special xsd annotation. The main purpose of that annotation is that it allows the toolkit to present a short, user-friendly list of options when you are choosing the Message Type in various places. Without it, the toolkit would have to list every single global element/type regardless of whether it is allowed to be the root element of a document.
The message anotation does not ( and should not ) affect how an XML document is validated.
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 » Message set creation using xsd having complex type def
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.