Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks | - |
Not Applicable | - |
Resolution:
This article is for TIBCO BusinessWorks 5.x without the Rest/Json plugin. For TIBCO BusinessWorks 5.x, the Rest/Json plugin supports all Restful Services. TIBCO BusinessWorks 6 has built-in support for Rest/Json.
Description:
============
REST Web Services:
REpresentational State Transfer (REST) is a key design idiom that embraces a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URLs. REST is an analytical description of the existing web architecture, and it interplays between the style and the underlying HTTP protocol. REST implements HTTP and XML for querying, removing and altering the resources using Web Methods such as GET, POST, PUT and DELETE.
Resolution:
=====================================================================================================
You can use BW as a client to invoke the RESTFUL web service. The attached sample (Filename:RESTFUL_service.rar) uses the online REST Web Service. The RESTGate service is used to send POST, Get, PUT and DELETE requests through a browser. Here, theĀ BW usexclient is used to invoke the Online REST Web Service.
Procedure to start the sample:
Open the project in Designer.
Start both Invoke_RESTFUL_SendAndReply_Process.process and RESTFUL_SendAndReply.process in Tester tab.
Invoke the _RESTFUL_SendAndReply_Process. The process is used to invoke theĀ RESTFUL_SendAndReply.process.
The RESTFUL_SendAndReply.process receives the request and sends the request to the RESTFUL Web service using the SendHTTPRequest Activity using URI ="http://www.thomas-bayer.com/restnames/countries.groovy" and gets the response back.
View the Web Service response result in the Invoke_RESTFUL_SendAndReply_Process.process->SendHTTPRequest Activity -> output tab.