You can add a complex type to a
local element, global element, local attribute, or global attribute.
Before you start:
You
must have completed the following tasks:
This task assumes that you have previously added the relevant
element or attribute to your message model.
When you add a complex type to an
element or attribute, you can either create a new complex type or
derive a new complex type from an existing base type.
To add
a new complex type:
- Switch to the Broker Application
Development perspective.
- Ensure that the Outline view is visible in the Broker Application
Development perspective of the WebSphere® Message Broker Toolkit. If the Outline view
is not visible, from the WebSphere Message Broker Toolkit menu,
click Window > Show View> Outline.
- In the Outline view, click the element to which you want
to add a new complex type.
- In the Message Definition editor, click the Properties tab.
- In the Properties Hierarchy, click Logical Properties
> Global Element ( or Logical Properties >
Local ElementLogical Properties > Global Attribute,
or Logical Properties > Local Attribute).
- In the Details view, in the Type list,
click (New Complex Type) to display the New
Complex Type window.
- If you want to create a new local complex type, click Create
a Local Complex Type, in the Composition list,
click the option that you require.
- If you want to derive a new local complex type from an
existing base type:
- Click Derive a new Local Complex Type from
existing base type.
- In the Base Type list, click
the base type that you want to use. Depending on
the base type you select, the Composition and Derived
By lists might become active.
- If the Composition and Derived
By lists are active, click the options that you require
in both lists.
- If you want to add the new complex type as a global complex
type, select the Create as Global Complex Type check
box, and specify a name for your new complex type in the Name field.
- Click OK to close the New
Complex Type window and add the new complex type to your
message model.
Any changes that you make are reflected
throughout where the element to which you are adding the complex type
occurs.