cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping query regarding same structure but only the difference is node name

former_member182412
Active Contributor
0 Kudos

Hi Experts,

I already done the mapping for MessageSale node, it got 25 different sub nodes, i need to map exact same mapping for other node called MessageRefund, these two exactly same sub nodes only difference is node name.

I need to redo all the mapping again for MessageRefund, is there any way i can do the same for both??

The sorce structure look like beow.

<ROOT>

<MessageSale>

<25 different nodes>

</MessageSale>

< all 25 same nodes as MessageSale >

<MessageRefund>

</MessageRefund>

</ROOT>

Accepted Solutions (1)

Accepted Solutions (1)

former_member188019
Active Participant
0 Kudos

if the referenced datatypes of <MessageSale> and <MessageRefund> elements are same, then you can use Mapping Templates.

Answers (1)

Answers (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi,

In java mapping this is easily done by copying child structure of a particular node. Since you are following message mapping you need to redo all mapping for MessageRefund. There is no other way you can achieve this.

Regards

Anupam