Retail Merchandising System (MOSC)

MOSC Banner

Restful web-service created by RSE does not return JSON response when any exception is caught.

edited Jun 21, 2019 9:33AM in Retail Merchandising System (MOSC) 2 commentsAnswered

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…..

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center