Author |
Message
|
gunjand |
Posted: Tue Dec 28, 2010 10:46 am Post subject: Message set creation using xsd having complex type def |
|
|
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 |
|
 |
smdavies99 |
Posted: Tue Dec 28, 2010 10:53 am Post subject: |
|
|
 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 |
|
 |
gunjand |
Posted: Tue Dec 28, 2010 11:16 am Post subject: Message set creation using xsd having complex type def |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Dec 28, 2010 11:22 am Post subject: |
|
|
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 |
|
 |
gunjand |
Posted: Tue Dec 28, 2010 11:27 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Tue Dec 28, 2010 1:35 pm Post subject: |
|
|
 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 |
|
 |
|