cancel
Showing results for 
Search instead for 
Did you mean: 

changing order of elements

Former Member
0 Kudos

I have 2 interfaces and mapping. I need to change the order of XML elements in resulted XML.

I have changed the order in DataType (for second XML) but it doesn't work.

example:

Interface 1


<data>
  <name></name>
  <title></title>
</data> 

Interface 2


<data2>
  <name2></name2>
  <title2></title2>
</data2> 

The result is


<data2>
  <title2></title2>
  <name2></name2>
</data2> 

How to change the order?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

in order to change the order of XML tags you only have

to change the data type

have you updated the message type too?

try choosing the same data type

in your message type (result)

and activate it once more time

Regards,

michal

Former Member
0 Kudos

unfortunately it doesn't work. May be I need recreate a mapping.

stefan_grube
Active Contributor
0 Kudos

After changing data types or message types, you have to reassign the message type to the mapping tool, otherwise the mapping uses the old structure.

Inside the mapping tool you should see the correct order.

Regards

Stefan

Answers (0)