WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Message Sets: Generating an XML Schema

You can generate an XML schema from a message definition file.

Before you start:

You must have completed the following tasks:

Note: WebSphere® Message Broker uses XML Schema 1.0 to describe the logical structure of messages.
Tip: You should replace any deprecated constructs before generating XML Schema representations of your models.
Tip: A message set is the original container for message models used by WebSphere Message Broker. In WebSphere Message Broker Version 8.0 and later, message model schema files contained in applications and libraries are the preferred way to model messages for most data formats. Message sets continue to be supported, and are required if you use the MRM or IDOC domains. If you need to model data formats for use in the MRM or IDOC domains, you must first enable message set development in the WebSphere Message Broker Toolkit. For more information, see Enabling message set development .

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, 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. The message definition file list is filtered to only show artifacts in the active working set. 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 Message Sets: 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 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 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 opens the schema editor.
    Tip: The Design, Source or Graph tabs located in lower-left corner of the schema editor provide you with different views of generated XML Schema.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:46


Task topicTask topic | Version 8.0.0.7 | ad12420_