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 » Help in Mapping XML Schema

Post new topic  Reply to topic
 Help in Mapping XML Schema « View previous topic :: View next topic » 
Author Message
bharathi.tech12
PostPosted: Sat Jul 20, 2013 8:50 am    Post subject: Help in Mapping XML Schema Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon Jul 22, 2013 6:12 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 22, 2013 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
bharathi.tech12
PostPosted: Mon Jul 22, 2013 11:51 am    Post subject: Reply with quote

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
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 » Help in Mapping XML Schema
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.