Table of Contents

Search

  1. Preface
  2. Web Services
  3. SOAP Web Services
  4. WSDL Data Object
  5. Schema Object
  6. How to Create a SOAP Web Service
  7. Operation Mappings
  8. Parsing Web Service SOAP Messages
  9. Generating Web Service SOAP Messages
  10. Web Service Consumer Transformation
  11. REST Web Services
  12. How to Create a REST Web Service
  13. REST Web Service Consumer Transformation
  14. REST Web Service Consumer Transformation Use Cases
  15. REST and SOAP Web Service Administration
  16. Datatype Compatibility

Web Services Guide

Web Services Guide

Generated Keys

Generated Keys

When you add an output group, the Developer tool relates the output group to another output group with a generated key. The Developer tool adds a bigint key to the parent group and to the child group. At run time, the Data Integration Service creates the key values for the generated keys.

Example

The SOAP hierarchy has the following nodes:
Departments Dept_Key Dept_Num Dept_Name Employees Dept_FK Employee_Num Employee_Name
When you create an output group of ports for Departments, you map the Departments node to an empty field in the Ports area. The Developer tool creates the following output group:
Departments Dept_Num Dept_Name
When you map the Employees node to an empty field in the Ports area, the Developer tool prompts you to relate the Employees group to the Departments group. You can relate the Employees group to more than one group. The Developer tool adds a key to the each group.
The Developer tool creates the following groups and generated keys:
Departments Key_Departments Dept_Num Dept_Name Employees Key_Departments Employee_Num Employee_Name
You do not have to map nodes to the generated keys. The Data Integration Service creates the key values at run time.
The Developer tool can create generated keys to multiple levels in one output group. The Employees group might contain the following ports:
Employees Key_Employees Key_Departments Key_Managers Employee_Num Employee_Name
Key_Departments and Key_Managers are the generated keys that point to parent groups. Key_ Employees is a generated key for the Employees group. Key_Employees appears when you relate a child group to the Employees group.

0 COMMENTS

We’d like to hear from you!