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 Derived Types

Generating Derived Types

When a WSDL or schema includes derived types, you must choose the types that you want to include in the SOAP message.
For example, the WSDL defines a base type AddressType. The WSDL also contains a USAddressType and a UKAddressType that are the derived AddressTypes.
Each type contains the following elements:
  • AddressType: street, city
  • USAddressType (extends AddressType): state, zipCode
  • UKAddressType (extends AddressType): postalCode, country
When you choose a USAddressType in the Operation area, the Developer tool creates a group for the USAddressType element in the SOAP message. The group includes the street and city from the base address and the state and zipCode for the USAddress. Derived types that extend base types always include the elements from the base type.
If you choose all of the available derived types for the SOAP messsage, the Developer tool creates groups similar to the following in the SOAP hierarchy:
Address Address: Address Street City Address:USAddressType Street City State ZipCode Address: UKAddressType Street City PostalCode Country
You need to define input port groups for Address, USAddress, and UKAddress.