Author |
Message
|
Lainetti |
Posted: Wed Jun 08, 2011 10:03 am Post subject: Creating a message using substitution groups WMB v7 |
|
|
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 |
|
 |
kimbert |
Posted: Wed Jun 08, 2011 11:33 am Post subject: |
|
|
 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 |
|
 |
Lainetti |
Posted: Wed Jun 08, 2011 2:18 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Jun 08, 2011 2:25 pm Post subject: |
|
|
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 |
|
 |
Lainetti |
Posted: Wed Jun 08, 2011 2:51 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Thu Jun 09, 2011 7:42 am Post subject: |
|
|
 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 |
|
 |
|