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 » Creating a message using substitution groups WMB v7

Post new topic  Reply to topic
 Creating a message using substitution groups WMB v7 « View previous topic :: View next topic » 
Author Message
Lainetti
PostPosted: Wed Jun 08, 2011 10:03 am    Post subject: Creating a message using substitution groups WMB v7 Reply with quote

Newbie

Joined: 13 Apr 2011
Posts: 8

Hi all

I'm trying to create a message using a schema which has some elements with substitution group like this one below:

Code:
          <xsd:element name="ID" type="ns1:IdentifierType" substitutionGroup="oa:ID" />
               <xsd:complexType name="IdentifierType" mixed="false">
                    <xsd:simpleContent>
                         <xsd:extension base="oa:IdentifierType">
                              <xsd:attribute name="qualifier" type="qdt:NormalizedStringType" />
                         </xsd:extension>
                    </xsd:simpleContent>
               </xsd:complexType>


the element is just the same as original with one more attribute.

But when generating the message the message definition instead of override the element it's generated a message using a reference to the original schema "oa:ID" so I can't see on the mapping node some attributes such as the qualifier in this case. am I missing something? or is there any issue using substitution groups and mapping node?

thanks


Last edited by Lainetti on Wed Jun 08, 2011 2:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jun 08, 2011 11:33 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Can you do us a favour, please? Substitution groups make my head hurt even when the XSD is properly indented. But when it's written like that, I just give up. Please use the 'Edit' button and wrap the XSD snippet in [c o d e] tags.
Back to top
View user's profile Send private message
Lainetti
PostPosted: Wed Jun 08, 2011 2:18 pm    Post subject: Reply with quote

Newbie

Joined: 13 Apr 2011
Posts: 8

kimbert wrote:
Can you do us a favour, please? Substitution groups make my head hurt even when the XSD is properly indented. But when it's written like that, I just give up. Please use the 'Edit' button and wrap the XSD snippet in [c o d e] tags.



sorry i didn't notice that it was that way .. thanks

anyway it is just an example for one element, instead of use the base type the substitution group is been used to override types and add new elements to basic types

the integrations is working now 'cause the mapping is done in java code, but trying to use mapping node I can't map that elements/attributes added using substitution groups
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 08, 2011 2:25 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Lainetti wrote:
trying to use mapping node I can't map that elements/attributes added using substitution groups


At least in v7, there are some controls available to modify what the mapping node shows for substitution groups. If you search the v7 info center for 'substitution group' (or maybe just 'substitution') you should find it in the top few links.... I did it earlier, but didn't save the link.
Back to top
View user's profile Send private message
Lainetti
PostPosted: Wed Jun 08, 2011 2:51 pm    Post subject: Reply with quote

Newbie

Joined: 13 Apr 2011
Posts: 8

mqjeff wrote:
Lainetti wrote:
trying to use mapping node I can't map that elements/attributes added using substitution groups


At least in v7, there are some controls available to modify what the mapping node shows for substitution groups. If you search the v7 info center for 'substitution group' (or maybe just 'substitution') you should find it in the top few links.... I did it earlier, but didn't save the link.


but the problem is the message definition is not using the substitution groups, it build a message with a reference to the basic schema and skip the substitution group. If not even the message shows the substitution group elements there's no way of the mapping node use it (i think ... )

I think the problem is creating the message set but i have no clue what I have to look for to solve this problem
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jun 09, 2011 7:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I think the problem is creating the message set but i have no clue what I have to look for to solve this problem
I'm not so sure. I think the same as mqjeff. You should take a look in the infocenter, as he suggests.
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 » Creating a message using substitution groups WMB v7
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.