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

Generating Substitution Groups

Generating Substitution Groups

Use substitution groups to replace one element with another in a SOAP message. Substitution groups work similarly to derived types, except that the element definitions include a substitution group name.
For example, you might have a base type Address and the derived types USAddress and UKAddress:
xs:element name="Address" type="xs:string"/> <xs:element name="USAddress" substitutionGroup="Address"/> <xs:element name="UKAddress" substitutionGroup="Address"/>
When you configure the SOAP message hierarchy, you can choose which element to substitute for Address in the SOAP message.