on 09-27-2007 4:03 AM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.