Generating a Web Service Definition from a message set

This describes how to generate a Web Services Description Language (WSDL) document from a message set, that specifies the interface for a Web Service.

Before you start:

To complete this task you must already have completed the following tasks:

Before you begin this task you should note the following points:

To generate a Web Service Definition:

  1. Switch to the Broker Application Development perspective.
  2. In the Resource Navigator, right-click the message definition file from which you want to generate a web service definition and select New > WSDL Definition. Alternatively, open the wizard by right-clicking anywhere in the Resource Navigator then clicking New > WSDL Definition on the pop-up menu, or by clicking File > New > WSDL Definition on the workbench menu. This will start the New WSDL Definition wizard.
  3. Step through the wizard filling in the details as required.
    Note:
    • A number of the panels and options are subject to settings you make within the wizard and it is possible that they will not always appear.
    • Some fields in the wizard could be greyed out. This is likely to be due to the field having a mandatory setting, or is not used due to other settings that have already been made.

On completion of the New WSDL Definition wizard, you will have generated a WSDL definition. The file extension for WSDL files is *.wsdl, and 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 expected WSDL 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
New WSDL definition wizard