Restful web-service created by RSE does not return JSON response when any exception is caught.
Hi,
Restful web-service created by Retail SOA Enabler (RSE) does not return JSON response when exception is caught.
For example, in case of success we get a proper JSON response like following:
{
"id": 1,
"comments": "Updated successfully."
}
But in case of exceptions we get an XML response with complete stacktrace of exception and not the JSON response.
<ServiceOpFaultReason xmlns="http://www.oracle.com/retail/integration/services/exception/v1"><shortErrorMessage>Missing data for update operation.</shortErrorMessage><errorDescription>com.oracle.retail.integration.services.exception.v1.IllegalArgumentWSFaultException: Missing data for update operation. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at…..