Skip to Content
0
Former Member
Jul 30, 2009 at 12:03 PM

Issue regarding a Message Mapping

21 Views

Dear friends,

I've a issue regarding message mapping within PI 7.0

This is how my source structure looks like:

<stop>

<stopreference/>

<action>

<actionreference/>

<shipment>

<shipmentreference/>

<goods>

<goodsexternalreference/>

</goods>

</shipment>

</action>

</stop>

This is how my target structure looks like:

STOPDETAILS>

<item>

<EXTERNAL_STOP/>

<EXTERNAL_ACTION/>

<EXTERNAL_SHIP/>

<EXTERNAL_GOOD/>

</item>

</STOPDETAILS>

In the source message the stop is the header and within a stop there can be 1 or more actions, within action there can be one or more shipments and within a shipment there can be zero or more goods...

My target message is a flat XML structure...

The customer wants to see, for every goods the shipment, the action and the stop. If the there are no goods, they wants just to see the shipment, the action and the stop...and so on...

Do you have a suggestion how to do that?

Kind regards,

Kamran