on 01-22-2008 11:24 PM
Hi,
I have a question/requirement, XI Message Mapping program need to read the incoming xml and map to a diffrerent target structure. Incoming xml has a parent node called Description and it has a value "Frauen Hemd Shoes", we need to map this value to target LongText Field but message mapping is ignoring this data while mapping.
A parent node can't hold the value/data while a child node is present. So is there any workaround to read this data to target str?
<Description>
<ShortName>Shoes</ShortName>
Frauen Hemd Shoes
</Description>
Expected result:
<Comments>
<ShortText>Shoes</ShortText>
<LongText>Frauen Hemd Shoes</LongText>
</Comments>
Please let me any clues to resolve the issue.
thanks,
Laxman
Hi Laxman,
As a couple replied mentioned, the input seems invalid.
If you really insist doing in this way, you can use Java Mapping or ABAP mapping program, parse input stream, you can find sample program SDN.
Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree , the soruce structure is not a valid one..
The source structure should look like the below:
<Description ShortName='Shoes'>
Frauen Hemd Shoes
</Description>
where ShortName is attribute for the Element "Description".
You add attribute to the element the same way you add subElement, Just choose attribute instead of subelement.
In this case the Mapping would be
Descriprion -
> LongText (target)
ShortName -
> ShortText (target)
This Should work.
Regards.
Jeet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The source structure is not a valid one to let message mapping understand it
please check in test tab.
to achieve this
<Description>
<ShortName>Shoes</ShortName>
Frauen Hemd Shoes
</Description>
shud be something like:
<Description>
<ShortName>Shoes</ShortName>
<anyOtherNode>Frauen Hemd Shoes</anyOtherNode>
</Description>
Ranjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laxman,
are you sure that <Description> in source strcture is node or element?
You cant put value in to node like an element.
i guess <Description> is element and <ShortName> is attribute.am i right?
Cheers,
Jag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.