cancel
Showing results for 
Search instead for 
Did you mean: 

BMP message transformation

Former Member
0 Kudos

Hi all,

I have an R3 to Web Service scenario

The incoming message is as follows

<root>

<data>

<item>

<element1>a</element1>

<element2>b</element2>

</item>

<item>

<element1>c</element1>

<element2>d</element2>

</item>

<item>

<element1>e</element1>

<element2>f</element2>

</item>

</data>

</root>

I need to split the message in the following format and call a web service for each occurance of the <item></item>

<task>

<element1></element1>

<element2></element2>

</task>

I am struggling to create message and interface mapping for this.

In the message mapping how do I set the target occurence to 0..unbound ?

I tried to create a data type where task would be 0..unbound , but this is not allowed as task is the root.

Also in the mapping program , I can not change it.

Points for helpful answer...

Accepted Solutions (1)

Accepted Solutions (1)

former_member214364
Active Contributor
0 Kudos

Hi Sabbir,

In message mapping screen just specify Source and target Message types, go to <b>Messages</b> tab select Targer Message occurrence as 0...Unbounded.

Now map <b>item</b> node to <b>Message type</b> node in targetwhose occurrence is 0...Unbounded.

Please let me know if you have any doubt.

Cheers,

Jag

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Change the message occurance 0 to unbounded.

Goto message tab in message mapping there change the occurance as 0 to unbounded.

Then Map the item -> Target Messagetype

Item -> splitbyvalue -> task

element1 -> element1

element2 -> element2

regards

yugapreetha

Former Member
0 Kudos

Thank you all

Former Member
0 Kudos

Hi,

To change the occurences of the root to unbounded u have to do this in message mapping. In message mapping go to the messages tab and change the occurences of your message there. XI will automatically add some Parent elements and dont worry about that.

Regards,

Sudheer.