on 08-28-2013 11:42 AM
Hi,
I have a scenario in which my source message is like:-
<Zone>
<header>
<1>abc</1>
<2>def</2>
<3>ghi</3>
</header>
<Customer>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
<Customer>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
</Zone>
<Zone>
<header>
<1>rst</1>
<2>qwe</2>
<3>tyu</3>
</header>
<Customer>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
<Customer>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
</Zone>
There will be only one header for a zone but many customers in a zone
and my target message is like
<Customer>
<1>abc</1>
<2>def</2>
<3>ghi</3>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
<Customer>
<1>abc</1>
<2>def</2>
<3>ghi</3>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
<Customer>
<1>rst</1>
<2>qwe</2>
<3>tyu</3>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
<Customer>
<1>rst</1>
<2>qwe</2>
<3>tyu</3>
<a>
<b>
<c>
<d>
<e>
<f>
</Customer>
The mapping is--the header values will be common for the customers in that zone and the target message should contain the header values and the customer details.In other words the target message should be header+customer details of all the zones.
I am not finding a way to map like this.
Hi Ankit
use "useoneasmany" function for that
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I already tried oneasmany function but what happens is that header values are not picked up for the next zone.
There are many customers in a zone with one header.Like wise there will be many zones so a different header will be there for each zone.My target is to create a list which will contain header+customer deatails of all the zones.So, Different header values will be inserted whenever a new <zone> tag is encountered.i,e Customer will have different header values corresponding to diffrent zones.
Regards,
Ankit Baid
Hi Ambrish,
I did the above mapping.Its woking for only one zone.When i tested in message mapping by duplicating the zone tree with different header values its creating for the first <zone> tag only and no nodes are created for consumers in another zone with different header.
Please suggest.
Thanks and Regards,
Ankit Baid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.