Skip to Content
0

REQUIRED - A guide to multi mapping

Mar 28, 2017 at 10:55 AM

54

avatar image

Hi Developers

I understand the theory of a multi mapping, but I'm having a few issues making one for splitting 1:n.

I've found a few articles on SDN but I cant seem to find any that are live - all urls are dead.

If you could advise where I could find some examples to work through that would be great.


Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Helmut Skolaut Mar 28, 2017 at 04:20 PM
0

Hi,

you have to tell in OP mapping occurrence 0....unbounded. As soon as either the inbound or outbound interface has something different than 1...1, you will need to consider an envelope in the XML message.

It looks like

<Messages>
<Message1>
<Root>bla</Root>
<Root>bla</Root>
</Message1>
<Message2> .... </Message2>
</Messages>

Be careful, most of the common error is to repeat the MessageN Node, but this is not the concept. The repeating is on the Root Node of the message. Now you can do what ever mapping you like to do ;-) If you are using the graphical mapping, this umbrella comes out of the box, using other mappings (XSLT, Java) you have to take care about that by your own.

One hint: if easy testing, you should do an XSLT like

<xsl:template match="/">
<xsl:apply-templates select="//Root"/>
</xsl:template>

This would help you simply pasting a payload from monitoring and not always add the envelope.

Regards
Helmut

Share
10 |10000 characters needed characters left characters exceeded