My Oracle Support Banner

How to create JSON Payload using REST/JSON Datacontrol (Doc ID 2116759.1)

Last updated on MARCH 04, 2021

Applies to:

Oracle JDeveloper - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Goal

Using JDeveloper 12.2.1.0, this document explains the options to create a JSON Payload when using a REST/JSON Datacontrol.

While following the below steps and doing the POST operation, you will get the payload as empty.

Example:

1) Create the REST connection as per documentation.
2) Create the REST DataControl (A generic DataControl) based on the Generic REST connection
3) Create a resourcePath, set DataFormat JSON and check POST
4) Parse Payload from Sample Code:

Example:

5) Finish the DC

6) Create a new ADF page and drag and drop the operation from the DataControl on the page (as ADF Parameter Form)
7) Run the page, Enter a value in the input box and push the button. That will invoke the operation (POST), but the payload is empty
 

How to retrieve the correct payload in JSON Format ?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.