Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Customization of rest adapter response in case of translation error

Gunjan KharkaJan 10 2025

Hi,

We have created REST API using Oracle SOA12C and we have a requirement to send customized error response in case of translation error. When we are receiving wrong input, Rest adapter itself is throwing translation error and bpel flow is not initiated.

We are getting below error response:

<RestFaultElement>
<summary>Translation Failure.
Failed to translate JSON to XML. ParseError at [row,col]:[-1,-1]
Message: Unexpected character ('f' (code 102)): was expecting comma to separate Object entries
at [Source: (BufferedReader); line: 2, column: 54]
The incoming data does not conform to the NXSD schema. Please correct the problem.</summary>
</RestFaultElement>

<RestFaultElement> and <summary> tags are coming in error response which seems to be inbuilt functionality of adapter. How to customize such error response?

Comments

Post Details

Added on Jan 10 2025
0 comments
63 views