How to build a REST service in BE with request payload defined from an external schema

How to build a REST service in BE with request payload defined from an external schema

book

Article ID: KB0083292

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.4.x

Description

How to build a REST service in BE with a request payload defined from an external schema.

Issue/Introduction

How to build a REST service in BE with a request payload defined from an external schema.

Environment

All supported Platforms

Resolution

1). Import the external schema into the BE project.

2). Define the request event and set its payload "XML Element Reference" to the Element from the external schema.

3). Set the default destination of the request event to an HTTP destination.

4). On the destination setting for this request do the following.

- Use RESTMessageSerializer(com.tibco.cep.driver.http.serializer.RESTMessageSerializer) .
 - Is JSON Payload set to "true"?