WebSphere Message Brokers
File: ad12420_
Writer: Terry Cowling

Task topic

This build: July 31, 2007 21:24:29

Generating an XML schema

Before you start:

You must have completed the following tasks:

Tip: You should replace any deprecated constructs before generating XML schema representations of your models.

This task topic describes how to generate an XML schema from a message definition file:

  1. Switch to the Broker Application Development perspective.
  2. In the Broker Development view, right-click the message definition file (*.msxd file extension) from which you want to generate an XML schema, and then click Generate> XML Schema on the menu.
  3. The Generate XML Schema window is displayed, and the message definition file that you selected is highlighted. If this is not the message definition file from which you want to generate an XML schema, select the correct message definition file.
  4. Optional: From the drop down list at the bottom of the Generate XML Schema window, select the XML Wire Format that you want to use to generate the XML schema.
    Tip: You must have previously added one or more XML Wire Format layers to a message set if you want to use an XML physical format when you generate XML schema. For further information see Adding an XML wire format.
  5. If you do not want strict generation of an XML schema, clear the Strict generation check box at the bottom of the Generate XML Schema page. By default, this check box is selected.
    Tip: For further information on strict and lax generation of XML schema, see Generate XML Schema.
  6. Click Next to move to the next page of the wizard.
  7. Select a destination folder for the XML schema. You can choose a location either inside or outside the workspace:
    • Click Create in a workspace directory and select the required destination folder from the expanded workspace directory. The contents of the folder that you select are overwritten.

      If you want to create a new folder:

      1. Click on the desired location.
      2. Click Create New Folder.
      3. Click OK
    • Click Export to an external directory and click Browse to expand the directory. Select a folder from the expanded directory. The contents of the folder that you select are overwritten.

      If you want to create a new folder:

      1. Click on the desired location.
      2. Click Make New Folder and type the name of the new folder into the directory tree.
      3. Click OK
  8. Click Finish. Your XML schema is generated.
  9. Use the Broker Development view to locate the destination folder that you specified for the generated XML schema. This folder contains a file with exactly the same name as your message definition file with the file extension *.xsd. This is the generated XML schema. To view this file, right-click it then click Open on the menu. This launches the schema editor.
    Tip: The Design, Source or Graph tabs located in bottom left corner of the schema editor provide you with different views of generated XML schema.
Related concepts
The message model
Generate model representations
Related tasks
Working with a message set
Working with a message definition file
Working with message model objects
Working with a message category file
Related reference
WSDL generation
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:24:29

ad12420_ This topic's URL is: