My Oracle Support Banner

OIC REST Response Mapping - Returning Empty Elements (Doc ID 2547645.1)

Last updated on OCTOBER 31, 2020

Applies to:

Oracle Integration-OIC - Version 18.2.5 and later
Information in this document applies to any platform.

Goal

For an integration with REST trigger, which is configured to give a JSON response, the integration is invoking back-end systems and maps the response from the back-end systems to the integration response wrapper.

In the response not all fields are mandatory.

When mapping a response from the back-end service response, the back-end service will return only applicable elements, not all elements.

In order to map this response in OIC REST response, it is necessary to map all attributes, as it is returning a message response with empty values for the fields which are not returned in the back-end service response.

This is not the preferred solution.

Can the response mapping recognize missing elements in the source and not map if the source element is not there?

This can be worked-around by putting if conditions in the mapping, but that can be a lot of extra work and there are concerns about performance overhead. 

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
References


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