Skip to Content
0
Former Member
Jan 16, 2008 at 04:22 PM

Message Transformation

16 Views

Hi,

Imagine the following scenario:

I have one source message type with this structure:

<p1:MT_Out>

<field1>999999</field1>

<field2>20080116</field2>

<documents>

<document>

<field3>PDF</field3>

<field4>111</field4>

</document>

</documents>

<documents>

<document>

<field3>TXT</field3>

<field4>222</field4>

</document>

</documents>

</p1:MT_Out>

and from that source message I want to generate two other messages like this:

Message1:

<p1:MT_In>

<field1>999999</field1>

<field2>20080116</field2>

<field3>PDF</field3>

<field4>111</field4>

</p1:MT_In>

Message2:

<p1:MT_In>

<field1>999999</field1>

<field2>20080116</field2>

<field3>TXT</field3>

<field4>222</field4>

</p1:MT_In>

Which is the best way to do this?

Thanks

Pedro Leal