If you have an XML choice element in your message, you can map each possible choice in the XML mapping editor. In this topic, we discuss how to map a simple choice construct, as well as a choice construct containing complex type elements.
Mapping a simple element in a choice construct.
Follow these steps to map elements in a simple choice list in the XML mapping editor:Mapping a complex type element in a choice construct.
In our example, the source has a choice of Address1,
Phone1 (chosen by default), and Address2, Phone2, as shown below.
The target has a choice of homeAddress, homePhone (chosen by default),
andbusAddress, busPhone: To view the choices available for the source
element, click the arrow in the choice box. Click to select the choice :
Similarly, select the element busAddress, busPhone in
the target. The mapping editor view changes to show the selected elements:
Use the Match Mapping function
to map the source element Address2 to the target element busAddress.
Next, use the Create mapping function to map the source
element Phone2 to the target element busPhone.
The following image of the overview section of the editor shows the completed
mapping: