![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON supports binding HTTP requests from a custom RESTful web service to TIBCO ActiveMatrix BusinessWorks processes.
• Use the Service Editor tab of the REST Dispatch and Reply activity to create a RESTful web service. See Creating a RESTful Web Service with Service Editor for details.If a RESTful web service is created in this way, the binding process can be performed directly in the Service Editor tab. See Service Editor for details.
• If a RESTful web service is created in this way, to bind the HTTP requests, you must select the Enable WADL Reference check box and select the created WADL file in the WADL Reference field in the Configuration tab, and then perform the binding process in the Service Editor tab. See REST Dispatch and Reply for details.
1. In TIBCO Designer, define a process and expand the REST and JSON palette in the Palettes panel. See Getting Started for details about how to define a process.
2. Drag the REST Dispatch and Reply icon from the Palettes panel to the Design panel.
3.
4. In the Service Editor tab, right-click the Application node in the left panel, and then select Add > RestService. A service node with the default name, RESTService0, is added under the Application node. See RESTful Web Service for details about the RESTful web service.
5. Enter the service name and the base URL for the RESTful web service in the right panel and click Apply to save your configuration.
6. Right-click the newly added service node in the left panel and select Add > Resource. A resource node with the default name, Resource0, is added under the service node.
7. Enter a resource path and parameters to use in the right panel. See Resource for details about the resource parameters.
8. Right-click the newly added resource node and select Add > Method. A method node with the default name, Method0, is added under the resource node. See Method for details about the method element.See Service Editor for details about how to bind this HTTP request to a TIBCO ActiveMatrix BusinessWorks process.
The following steps: step 10 and step 11 are optional. If you want to define additional or specific parameters for a method node, except for parameters inherited from the parent resource node, you can add a request node to specify more parameters.
10. Right-click the method node, and then select Add > Request or Add > Response. A request node or a response node are added under the method node.
11. Enter parameters used for the request node or response node. See Request and Response for details about the request and response components.
1.
2.
3. Enter a name for the web application in the Application Configuration panel and click Apply to save your configurations.
4. Double-click the Application icon in the Design panel, and then drag the RestService icon from the Palettes panel to the Design panel.
5. Configure the RESTful web service in the REST Service Configuration panel. See RESTful Web Service for details about the RESTful web service.
6. Double-click the RestService icon in the Design panel, and then drag the Resource icon from the Palettes panel to the Design panel.
7. Configure the resource in the Resource Configuration panel. See Resource for details about the resource parameters.
8. Double-click the Resource icon in the Design panel, and then drag the Method icon in the Palettes panel to the Design panel.
9. Configure the method in the Method Configuration panel. See Method for details about the method element.
10. Double-click the Method icon in the Design panel, and then drag the Request icon in the Palettes panel to the Design panel.
11. Configure the request in the Request Configuration panel. See Request for details about the request component.
12. Drag the Response icon from the Palettes panel to the Design panel.
13. Configure the response in the Response Configuration panel. See Response for details about the response component.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |