How to set the payload schema to send the JSON doc with no wrapping elements
book
Article ID: KB0082320
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Users trying to invoke a RESTful service with a POST method passing a JSON doc as the payload using catalog function HTTP.sendRequest() method and they expect a response. In this case the users need to set the payload schema to send the JSON doc with no wrapping elements.
Issue/Introduction
How to set the payload schema to send the JSON doc with no wrapping elements
Environment
TIBCO BusinessEvents 5.3.0 HF1 and above
Resolution
By default, the wrapper and the internal attribute elements will be included. However, to exclude them, set the following property "be.http.json.rootElement.ignore" to true at Processing Unit level in CDD.