Configuring TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON "REST Dispatch and Reply" palette to receive form/JSON/XML format type requests.
book
Article ID: KB0089258
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON
-
Not Applicable
-
Description
Description: Configuring the TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON REST Server "REST Dispatch and Reply" to receive different format type requests, including form, JSON and XML.
Issue/Introduction
Configuring TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON "REST Dispatch and Reply" palette to receive form/JSON/XML format type requests.
Resolution
Configure the expected request format type in the WADL configuration. Add "Request" under "Method". Note that the Request should only have one request format type. To receive the form request, manually add the form input parameters in the "Parameters" field. For style, choose "form". Do not check the check box for JSON and XML.
To receive the JSON request, only check the checkbox "JSON" as "Presentations". Do not add form data in the "Parameters" field. The REST server will only receive the "form" request and ignore the JSON request. To receive an XML request, only check the checkbox "XML" as "Presentations".