Creating Process Definition Stubs from a WSDL File

You may have a WSDL file that describes the services you wish to implement. ActiveMatrix BusinessWorks provides a wizard that creates the Service resource and process definition stubs that implement the operations in your WSDL file.

To create a service resource and process definition stubs from a WSDL file, perform the following procedure:

Procedure 

  1. Place the WSDL file in your project directory.

  2. If your project is not open, open your project in TIBCO Designer. If your project is already open in TIBCO Designer, choose Resources > Refresh from the menu.

  3. Create a transport shared configuration resource (either HTTP Connection or JMS Connection) to use as the transport for the web service.

  4. Select and right-click on the name of the WSDL file in the project tree.

  5. Choose Tools or Multi-User > Generate Web Service > From WSDL from the pop-up menu.

    The WSDL to Process dialog appears.

  6. Review the values for the fields in the WSDL to Process dialog. The default values may be sufficient for your purposes, or you may wish to change the values. The following table describes each field.

  7. Field

    Description

    Port Type

    Specifies the WSDL file and name of the interface for the web service. In WSDL terminology, this is referred to as the Port Type.

    Transport

    Transport for incoming messages. This can be either an HTTP Connection or a JMS Connection shared configuration resource.

    The default value in this field is the first HTTP Connection or JMS Connection resource found in the project tree.

    Location

    Location in the project to place the generated Service and WSDL resources.

  8. Click Generate to create a Service resource and process definition stubs for the operations in this WSDL file.

  9. The Service resource is named <interfaceName>-service and the process definition stubs are named <portType><operationName>. The service and process definition stubs are placed in the location specified in the WSDL to Process dialog.

  10. Click the <interfaceName>-service resource in the project tree to display the service. Ensure the endpoint bindings are specified correctly. For HTTP transports, you may need to specify the Endpoint URI. For JMS transports, you must specify the destination name and other JMS configuration information. See the description of the Service resource in TIBCO ActiveMatrix BusinessWorks Palette Reference for more information about specifying endpoint bindings.

  11. Click on each process definition stub and provide the implementation for each operation by completing the process definition for the operation.