This documentation is for WSO2 Data Services Server 3.2.2. View documentation for the latest release.
Grouping Data into Complex Elements - Data Services Server 3.2.2 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

Complex Elements help represent data in a structured manner. For example, let's take a table containing customer information. There can be several columns that keep data related to the address of employees such as number, street, city, postal code. You can group them into one element called address using complex elements and present them in a more structured manner.

Following example illustrates how to use complex elements:

After defining the query, proceed to adding an Output Mapping. In output mappings, select the Mapping Type as complex element. Specify an Element Name and click the Add Nested Element button. For example,

The added element appears under Complex Elements in the Output Mapping.

According to the figure below, addressline1, addressline2 and city are nested elements that come under address element.

  • No labels