![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
You can also use the REST Dispatch and Reply activity to handle cross-origin requests. See Support for Cross-Origin Requests for details about the rules that the activity uses to handle cross-origin requests.
Selecting this check box enables the use of existing WADL files to describe a RESTful web service for binding TIBCO ActiveMatrix BusinessWorks processes. The RESTful web service is loaded in the Service Editor tab and the Service Editor becomes read-only.Clearing the check box enables the use of a custom RESTful web service created in the Service Editor tab for binding TIBCO ActiveMatrix BusinessWorks processes. For more details, see Creating a RESTful Web Service with Service Editor. Specify a WADL file that you want to use. The WADL file specified here can either be a standard one or a custom one created by using the WADL palette. For details, see Creating a RESTful Web Service with a WADL Palette.Note: This field is available only when the Enable WADL Reference check box is selected. This field is only available after you select the Enable OAuth check box. Specify the OAuth server URL. The plug-in connects to the OAuth server based on the URL.On the Service Editor tab you can bind HTTP requests to corresponding TIBCO ActiveMatrix BusinessWorks processes. See Exposing BusinessWorks Processes as RESTful Web Services for details about how to bind HTTP requests to TIBCO ActiveMatrix BusinessWorks processes to expose TIBCO ActiveMatrix BusinessWorks processes as RESTful web services.You can export a RESTful web service to a WADL file. For more information, see Exporting RESTful Web Services to a WADL File.To export a RESTful web service to a WADL file, click the Export WADL button. Then, on the Export WADL dialog box, provide information as per Table 18.
Table 18 Export WADL You can export RESTful web service to a Swagger API description file. For more information, see Exporting RESTful Web Service to Swagger.
TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON uses Swagger version 2.0 to export Swagger API description files.To export RESTful web services to a Swagger web server, click the Export Swagger button. Then, on the Export Docs dialog box, provide information as per Table 19.
Table 19 Export Docs
• ZIP: The ZIP file contains an API description file, Swagger library, and a light-weight HTTP server named Winstone.
• WAR: The WAR file can work with any J2EE container such as Jetty and Tomcat. You can use your own server instead of the default Winstone by using this format. After selecting the Show Advanced check box, the following fields are displayed.
The RESTful web service can be either an existing service described by the referenced WADL file or a custom one created in the Service Editor tab. See Creating a RESTful Web Service with Service Editor for details about creating a RESTful web service.The Overview tab displays the general binding information with pairs of the RESTful web service and the bound TIBCO ActiveMatrix BusinessWorks process.
Table 20 REST Dispatch and Reply Output The Error Output tab lists the exceptions that can be generated by the REST Dispatch and Reply activity. See Trace Messages for details about error codes.Table 21 REST Dispatch and Reply Error Output
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |