Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 14 Invoking and Implementing Web Services : Web Service Wizards

Web Service Wizards
Creating web services involves multiple resources and configuration options. TIBCO ActiveMatrix BusinessWorks provides two wizards for easily creating web services. The two wizards are useful in the following situations:
The following sections describe each wizard.
Creating Web Services From Process Definitions
You may have one or more process definitions that you wish to expose as web services. TIBCO ActiveMatrix BusinessWorks provides a wizard that creates a Service resource and WSDL file for the selected process definitions.
To create a service resource and WSDL file from one or more process definitions, perform the following procedure:
1.
2.
3.
4.
Choose Tools or Multi-User > Generate Web Service > From Process from the pop-up menu.
The Generate Web Service dialog appears.
5.
6.
Click Generate to create a Service resource and WSDL file for the selected process definitions.
The Service resource is named intf<processDefinitionName>-service and the WSDL file is named intf<processDefinitionName>. The service and process definition stubs are placed in the location specified in the Generate Web Service dialog.
7.
Click the intf<processDefinitionName>-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.
Creating Process Definition Stubs From a WSDL File
You may have a WSDL file that describes the services you wish to implement. TIBCO 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:
1.
2.
3.
4.
5.
Choose Tools or Multi-User > Generate Web Service > From WSDL from the pop-up menu.
The WSDL to Process dialog appears.
6.
7.
Click Generate to create a Service resource and process definition stubs for the operations in this WSDL file.
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.
8.
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.
9.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved