Extending a noun
There are two methods for adding more information to the noun. The simplest method is to leverage the UserData extension points that the component nouns provide. The alternative is to take advantage of the overlay methodology. Overlay extensions allow users to have their extensions appear within the OAGIS or HCL Commerce complex types. In order to add elements, a user must extend the OAGIS or HCL Commerce complex types within their own namespace. By doing this, it is possible for users to enforce additional restrictions or add additional elements to the OAGIS or HCL Commerce complex types.
Procedure
- Adding more data using the UserData extension points:To use this simple approach of adding more information to the request, you must do the following updates.
- Adding more data using the overlay extension model:
Adding more data using the overlay extension model requires more steps than the UserData approach. So for those cases where you cannot use the simple UserData approach to add more data for a given request, perform the following steps when overlaying the existing schema.
Results
Common
and Identifier
type
XSDs. While extending may seem simpler, it can result in future
problems when trying to reuse the Java objects across nouns.