WebSphere Message Brokers
File: ad20809_
Writer: Terry Cowling

Task topic

This build: July 31, 2007 21:26:13

Creating an application based on WSDL or XSD files

This task topic describes how to create a new application that is based on existing WSDL or XSD files.

  1. Switch to the Broker Application Development perspective.
  2. Open the New Message Broker Application wizard. You can do this in one of the following ways:
    • At the top of the Broker Development view, click the down arrow down arrow. A pop-up window displays the three Quick Start wizards.
      • Click Start from WSDL and/or XSD files.
    • Click File> New> Project, or right-click anywhere in the Broker Development view and then click New> Project. The New Project window opens.
      1. Click Message Brokers. A list of wizards is displayed.
      2. Click Start from WSDL and/or XSD files and then click Next.
    The first panel of the New Message Broker Application wizard is shown.
  3. Set up the basic resources that are required to develop a Message Broker application that uses existing WSDL and XSD files as a starting point.
    1. Type the name of your new application in the Message flow project name field. The name that you type is also displayed in the Message set project name and Message set name fields, but with 'MessageSet' appended. Similarly, the name that you type is also displayed in the Message flow name field (with 'Flow' appended), and in the Working set name field.
    2. Click Next.
    Note: You can change any of the names that are displayed by typing into the appropriate field the name that you want. You can also clear either of the check boxes that relate to the creation of a new message flow or a new working set; if you do this, you cannot enter text into the associated name field.
  4. Select the WSDL or XSD files that you want to use as the initial contents of the message set.
    • If you want to choose WSDL or XSD files that exist in your workspace, click Use resources from the workspace.

      You are presented with a list of resources from which you can choose.

    • If you want to choose WSDL or XSD files that exist outside your workspace, click Use external resources and type a directory name in the From directory field. Click Browse ....

      You are presented with a list of the items in that directory. Make your choice from this list.

    In both cases, a two-pane view is displayed. On the left side, containers (for example, projects, folders, and message sets) are displayed. On the right side, the contents of these containers are shown. Depending on which button was clicked, either a workspace view or a file system view of the resources is displayed.

    You do not need to select an XSD file that a selected WSDL files depends on, if the only use of the XSD file is from the WSDL bindings.

    Start of changeThe view incorporates an option that allows you to copy the source file into the importFiles directory of the message set. You can use this option as follows:
    • If you choose only WSDL files you can select the checkbox.
    • If you choose only XSD files, the option is automatically selected and the checkbox is greyed out.

      If you subsequently select a WSDL file, the checkbox is enabled but the selection state is not changed, that is, the checkbox is still selected.

    • Regardless of the selection, if the importFiles folder exists in the message set project after the import it is collapsed.
    End of change

    Start of changeIf you import only WSDL files, the wizard sets the default message domain to SOAP.End of change

  5. Click Next. If you selected one or more WSDL files, the WSDL files that you selected are shown in a check box tree, with the acceptable bindings for each file shown as children.
  6. (Optional) Select one or more bindings for each of the WSDL files that you selected. If you do not select at least one binding for each WSDL file, an error message is displayed and the Next and Finish buttons are disabled.
  7. Click Next. If you selected one or more XSD files, the XSD files that you selected are displayed in the next pane, with the global elements for each file shown as children.
  8. (Optional) Select the global elements from which you want to create message definitions.
  9. Click Finish. Validation of the WSDL and XSD files is done. Warnings and errors that result from the validation are displayed in the next pane. Otherwise the wizard terminates.
  10. (Optional) If only warnings are listed, and you want to ignore them, click Finish to terminate the wizard.
  11. (Optional) If there are any errors listed, you must correct these before you can terminate the wizard successfully. Either click Back to go back and correct the errors, or click Delete to exit from the wizard.
Related concepts
Generate XML Schema
Generate WSDL
XML Schema and the message model
Related reference
Broker Application Development perspective
Notices | Trademarks | Downloads | Library | Support | Feedback

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

ad20809_ This topic's URL is: