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?