|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Help in Mapping XML Schema |
« View previous topic :: View next topic » |
Author |
Message
|
bharathi.tech12 |
Posted: Sat Jul 20, 2013 8:50 am Post subject: Help in Mapping XML Schema |
|
|
Voyager
Joined: 14 May 2013 Posts: 93
|
I am trying to map two different XML Schema's using the mapping node
AcTransfer XML Schema: it has the elements with couple of attributes in that for example
<hix-core:SignatureName s:id="idvalue265" s:linkMetadata="idvalue0" s:metadata="idvalue0">
<nc:PersonGivenName s:id="idvalue266" s:linkMetadata="idvalue0" s:metadata="idvalue0">nc:PersonGivenName</nc:PersonGivenName>
<nc:PersonMiddleName s:id="idvalue267" s:linkMetadata="idvalue0" s:metadata="idvalue0">nc:PersonMiddleName</nc:PersonMiddleName>
<nc:PersonSurName s:id="idvalue268" s:linkMetadata="idvalue0" s:metadata="idvalue0">nc:PersonSurName</nc:PersonSurName>
</hix-core:SignatureName>
Each elements has id, linkMetadata, metadata, value as attributes.Inline
ElecApp xml schema:
<xs:sequence>
<xs:element ref="IndvFirstName"/>
<xs:element ref="IndvMiddleInitial"/>
<xs:element ref="IndvLastName"/>
<xs:sequence>
I need to map the PersonGiven name to IndvFirstName, PersonMiddleName to IndvMiddleInitial and so on. as the XML Schema structure is different when we map PersonGivenName value to IndvFirstName Element we see the null values coming up. Can you suggest how we need to map the element to element and pass the values.
Can you suggest me how we can map the elements with different schema structure. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Jul 22, 2013 6:12 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
PersonGivenName has attributes ( so it is a complex type ) and it also has a value ( so it is a simple type ). In XML Schema, this is known as a 'complex type with simple content'.
Quote: |
as the XML Schema structure is different when we map PersonGivenName value to IndvFirstName Element we see the null values coming up. Can you suggest how we need to map the element to element and pass the values. |
I would try to map PersonGivenName itself, instead of its 'value' child. Have you tried that yet? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 22, 2013 7:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's also port of a repeating element with a repeating output that doesn't appear to be mapped within a for loop.
So it's not clear which repeating element will be mapped, and whether the specific repeating element that is mapped actually contains a value for this field. |
|
Back to top |
|
 |
bharathi.tech12 |
Posted: Mon Jul 22, 2013 11:51 am Post subject: |
|
|
Voyager
Joined: 14 May 2013 Posts: 93
|
Thanks for your supports.
I have tried the same way to map the PersonGivenName to my target element, but its creating the submap tranformation.In the submap again the same issues.
I have also traced the input parser tree structure after receiving from input node. The value is coming but its not showing the element name. Please check the screenshot below.
See my request xml :
Code: |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AccountTransferRequest>
<Person>
<PersonName>
<PersonGivenName>Vamsidhar</PersonGivenName>
<PersonMiddleName>R</PersonMiddleName>
<PersonSurName>Boya</PersonSurName>
<PersonNameSuffixText> </PersonNameSuffixText>
</PersonName>
<PersonAugmentation>
<contact admin>
<ContactInformation>
<ContactMailingAddress>
<StructureAddress>
<LocationStreet>
<StreetFullText>ParkAvenue</StreetFullText>
</LocationStreet>
</StructureAddress>
</ContactMailingAddress>
</ContactInformation>
</contact admin>
</PersonAugmentation>
</Person>
</AccountTransferRequest>
|
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|