cancel
Showing results for 
Search instead for 
Did you mean: 

Target XML Alignment after Message Mapping

Former Member
0 Kudos

Hello Experts,

I have done one to one Message Mapping and facing issue after the Mapping is executed.

My source Structure is like:

And after one to one mapping execution Target created is like :

My requirement is like I want the target to be an exact replica of input structure , but PI internally re align the xml and group TaxableGroup and TaxGroupRule together(highlighted in the screenshot.)

Can anyone help me on this or tell me the approach to achieve this requirement.

Reagards,

Pradeep

Accepted Solutions (1)

Accepted Solutions (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Pradeep,

Please check below blogs.

Former Member
0 Kudos

Hello Raghu,

Do we have any option to achieve it without Java Mapping as I am not well versed with the same.

Regards,

Pradeep

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Pradeep,

Don't map any fields and nodes under root node(TaxImport) just map source root node to target root node like below with return as XML. Remember If you map any field under root node return as XML will not work.

TaxImport(Return as XML)-------> TaxImport

Regards,

Praveen.

former_member184720
Active Contributor
0 Kudos

It add's the additional MT node to target structure.

@ Pradeep :

>>>My requirement is like I want the target to be an exact replica of input structure

Just to be clear - Are you doing any transformation(mapping) for any of the fields? If you want to send the same payload to target then you don't even need the mapping.

However if you are doing something and you want them to be in the same order, you should try XSLT which i believe will return in the same order.