WebSphere Message Brokers
File: ad18211_
Writer: Terry Cowling

Task topic

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

Generating a WSDL definition from a message set

Before you start you must already have completed the following tasks:

To ensure the highest interoperability of your web services, use the document style of WSDL whenever possible. If rpc style WSDL is necessary, use literal encoding.

Replace any deprecated constructs before generating WSDL representations of your message models.

To generate a WSDL definition:

  1. Switch to the Broker Application Development perspective.
  2. In the Broker Development view, right-click the message definition file from which you want to generate a web service definition and select Generate > WSDL Definition.

    Alternatively, right-click anywhere in the Broker Development view then select Generate > WSDL Definition on the pop-up menu.

    This starts the Generate WSDL wizard.
  3. Step through the wizard filling in the details as required. Some of the panels and options are subject to settings that you make within the wizard and might not always be shown. Also, some fields in the wizard might be greyed out. This happens when a field has a mandatory setting, or when the field is not used because of settings that have already been made in other fields.

On completion of the Generate WSDL wizard, you have generated a WSDL definition. The file extension for WSDL files is .wsdl, and the file extension for any imported schema files in multi-file mode (where the WSDL definition is split over a number of files) is .xsd.

This following is an example of the WSDL that is generated for a JMS binding:

<wsdl:service name='HTTP'>
  <wsdl:port binding='tns:HTTPSoapBinding' name='HTTP'>
    <wsdlsoap:address
       location='jms:/queue?destination=jms/MyQueue&amp;
                 connectionFactory=jms/MyCF&amp;
                 priority=5&amp;
                 targetService=GetQuote'/>
  </wsdl:port>
</wsdl:service>
Note: The various parts of the location string are broken over separate lines for clarity, but are actually generated as a continuous string without additional white space.
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
Generate WSDL wizard
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:09

ad18211_ This topic's URL is: