on 10-14-2005 8:39 AM
I need to map my message types
source
<PersonInputMessageType>
<persons>
<person>
<name>Test1</name>
</person>
<person>
<name>Test2</name>
</person>
</persons>
</PersonInputMessageType>
target
<PersonMessageType>
<person>
<name>Test1</name>
</person>
</PersonMessageType>
<PersonMessageType>
<person>
<name>Test2</name>
</person>
</PersonMessageType>
I created a visual mapping where I mapped fields
pesron->person, name -> name.
The result is
<PersonMessageType>
<person>
<name>Test1</name>
</person>
</PersonMessageType>
What step did I miss?
Hello Sergey,
You could use the removeContexts function in case that there are more than one <persons> tags. I'd suggest the following:
person -> removeContexts -> PersonMessageType,
Constant -> person
name ->name
Best regards
Joachim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sergey,
You also have to create a mapping
<person> -> <PersonMessageType>
Since in a multi-mapping the occurrence of the result message is set to 0..unbounded, it will not be created automatically (0 occurrences are allowed!!!). By the mapping cited above, you create the same number of target messages, as there are <person> elements.
In addition you also have to take care about the occurrences of the target element <person>. If it's set to 1..1, there is no problem. If it's set to 0..1, please assign a constant to it, to make sure it is built up at runtime.
Best regards
Joachim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
YOu need to use the removeContexts() function.
Regards
Priyanka
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 | |
9 | |
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.