Skip to Content
0
May 27, 2008 at 09:08 AM

different message structures on one communication channel

24 Views

Hello,

we've got the situation where on on single communication channel, we will have multiple message structures. We need to discriminate between them and then handle them according to their structure.

All messages have a header section in which the message type is stored. So I've created a dummy structure:

<ns0:dummy>
  <header>
    <message_type></message_type>
  </header>
</ns0:dummy>

the actual messges will have a different root element, but you can ignore this by using xpath. So, I've created a sender agremeent with this dummy message as the interface. I have a interface determination with conditions:

/*/header/message_type = MT_A

and receiving interface MT_A. Same for MT_B and so forth. There's no interface mapping in between.

The receiving system now has a receiver agreement with MT_A as the interface. This all works. But in the receiver agreement you set up a communication channel where the message is sent to.

But at this point, MT_A was what the original system sended. All we did was figuring out what message type we're dealing with. Now we need to handle this message as MT_A and using a interface mapping, map it to MT_A_New. We cannot do this in the original receiver determination / interface determination combi, sinse this would mean a message mapping from dummy to something, and we need from MT_A -> MT_A_NEW.

Does anyone have thoughts on how to do this?

Thanx in advance!

Greetings, Walter.