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 and SOAP Web Service Administration
  15. Datatype Compatibility

Web Services Guide

Web Services Guide

Unnamed Arrays in a Response Message

Unnamed Arrays in a Response Message

A REST Web Service Consumer transformation supports unnamed arrays only in a response message but not in a request message. To parse an unnamed array schema defined in the Method Output Definition, the parent element of complexType or simple type array elements must be of name
xmlRooot
.
In a Rest Web Service Consumer transformation, you must define xmlRoot as the child element of the xmlRoot element with maximum occurs set to unbounded and the elements in unnamed array as child elements of the xmlRoot element.
The following image shows the defined method output for the unnamed array:
The method output definition shows xmlRoot as the child element of the xmlRoot element.