You can map fields that are in a relational structure to the hierarchical structure used by a web service target.
On the
Field Mapping
tab for the Target transformation, the fields shown in the
Target Fields
area are shown in a hierarchical structure. The target fields are determined by the request message structure of the operation selected for the Target transformation.
Each source object displays as a group in the
Input Fields
area. You can select fields in the
Input Fields
area to map the fields to the web service request. If the input fields include multiple input groups, map the groups to the corresponding nodes in the web service request. You need to map all of the fields that are required in the web service request.
If you map multiple source objects, you must assign primary and foreign keys to at least two groups. Ensure that the source data is sorted on the primary key for the parent object, and sorted on the foreign key and primary key for child objects.
To assign keys, click the key icon next to a field that you want to be a primary or foreign key, as shown in the following image:
In the
Mark as Key
dialog box, you can assign a field as primary or foreign key and select the related group, as shown in the following image: