This describes how to create a new message
definition from an XML Schema using the New Message Definition File wizard
in the workbench.
Before you start:
You must have
completed the following tasks:
Before you begin this task, you should be aware of the points listed
below:
- To create a new message definition file from an XML schema, the schema
file must already be present in the workbench,
for example in your message set project. This allows you to select the schema
file in the New Message Definition File wizard.
- If the message set to which you are adding the new message definition
file does have an XML wire format layer, but no namespace support,
the imported schema is modified to remove namespaces. For this reason, you
should enable namespace support before importing a schema.
- If the message set to which you are adding the new message definition
file does not have an XML wire format layer, but does have namespace
support, only the logical information appears in the model. For this reason,
you should add the physical layer to the message set prior to importing the
schema. This will ensure that it is populated with the settings and values
from the schema. The XML schema is not modified to remove namespaces.
- If the message set to which you are adding the new message definition
file does not have an XML wire format layer, and does not have
namespace support, only the logical information appears in the model and the
imported schema is modified to remove namespaces.
- If you are working with a message set that does not have namespace support,
you must specify the preferences that apply when you import a schema into
the message set. These preferences allow you to specify how the importer treats
certain individual schema constructs. You can either reject the schema if
any occurrences of the construct are encountered or modify occurrences of
the construct. If you choose modify, the importer modifies all occurrences
of the construct.
- The extension to the XML Schema file must be .xsd in
lower case.
The following steps cover creating a completely
new message definition file and also overwriting the contents of an existing
file.
To create a message definition from an XML schema file: