Creating Data Structures
Use
Data structures are composites of one or more node attributes from one or more data objects. A data structure can also comprise of one or more custom attributes. Data structures are typically used as return values of service operations, for example as join structures of a query. Since the signature of service operations is modeled and the modeling tools can only be aware of model entities, any structure that is neither a data object node nor a Java simple type, such as a string, Boolean, and so forth, needs to be explicitly modeled.
Prerequisites
You have created at least one data object, unless the data structure contains only Java simple types.
More information: Creating Data Objects
Procedure
-
In the Service Explorer , open the Data Structures context menu and choose Create Data Structure .
-
In the Create Data Structure dialog box, enter a data structure name.
-
In the Object Editor, choose the Attribute tab page to add a data-structure attribute.
-
Click Add DO Attribute to add the required attributes of the data objects.
-
Click Create Attribute to create custom attributes. Enter the Name of the attribute and select the required data type.
-
Result
The data object structure has been created and appears under the Data Structures node in the Service Explorer .