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

Choice Element

Choice Element

A choice element restricts a child element to one of the elements in the <choice> declaration.
The following text shows a person element that is an employee or a contractor:
<xs:element name="person"> <xs:complexType> <xs:choice> <xs:element name="employee" type="employee"/> <xs:element name="contractor" type="contractor"/> </xs:choice> </xs:complexType> </xs:element>
You can map choice elements using the following methods:
  • Create output ports for each choice element in an output group. Some elements will have null values in the output row.
  • Create an output group for each choice. For the above example, create an employee group and a contractor group. The Data Integration Service generates a row based on which element appears in the SOAP message.

0 COMMENTS

We’d like to hear from you!