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 » Having the same message definition use the same root tag

Post new topic  Reply to topic
 Having the same message definition use the same root tag « View previous topic :: View next topic » 
Author Message
bbakerman
PostPosted: Sun Jan 07, 2007 7:53 pm    Post subject: Having the same message definition use the same root tag Reply with quote

Apprentice

Joined: 17 Dec 2003
Posts: 41

Is it possible to have a series of message definitions in a single message set that are physically represented by the same root tag name.

WMB 6 v60001

We have some legacy schema definitions that all follow a general schema design pattern like this

Code:

companyXYZ
     --- header
           --- transport details
           --- security details
     --- body
          -- app specific details


We have imported a couple of schemas and changed the "message" names from companyXYZ to something like

Code:

   companyXYZ_msg1
   companyXYZ_msg2


Then in the Physical properties ---XML1 --- Message--Xml Name i have changed the XML field name to companyXYZ for each message definition.

This compiles OK according to the toolkit but at runtime if we do a RCD with validation it throws a exception

The input XML looks something like

Code:

<? xml ...>
<companyXYZ>
     <header>
           --- transport details
           --- security details
    </header>
    <body>
          -- app specific details
    </body>
</companyXYZ>


The exception throw is that the message identifier does not match the root tag name found.

But having search the doco and this forum it would appear that I can have a different message type name from its root tag name if I set the XMLName bit in the physical properties.

But however we dice it, weI can get it to work as expectde. HOwever if we hack the xml so the root tag is the same name as the message then it works and parses eg...

Code:

<? xml ...>
<companyXYZ_msg1>
     <header>
           --- transport details
           --- security details
    </header>
    <body>
          -- app specific details
    </body>
</companyXYZ_msg1>


So it seems the Physical properties ---XML1 --- Message - XML Name does not work as we expect
Code:
Back to top
View user's profile Send private message
pathipati
PostPosted: Sun Jan 07, 2007 8:08 pm    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Quote:
Is it possible to have a series of message definitions in a single message set that are physically represented by the same root tag name.
Yes, it is possible to have series of message definitions in a single message set. but the limitation is you can't have more that one Global element with same name.

Quote:
physically represented by the same root tag name.

exactly what do you mean by this?
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Jan 08, 2007 2:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What bbakerman means is that all of the messages are under an XML root tag of "companyXYZ".

I don't think that what bbakerman is trying will work. I think that it's necessary to chnage the message set so that there is only one global message element with the root tag of "companyXYZ", and then include the other messages as either choices or embedded messages.

Edit: But I've been known to be wrong before.
_________________
I am *not* the model of the modern major general.


Last edited by jefflowrey on Mon Jan 08, 2007 2:57 am; edited 1 time in total
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jan 08, 2007 2:54 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
The exception throw is that the message identifier does not match the root tag name found.
What did you put in the Message Type property on the input node?
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 » Having the same message definition use the same root tag
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.