I have a Restservice that I am calling,
For Good responses it returns a JSON serialized Customer
when there is an error the service returns a JSON serialized ServiceError.
I need to get some details out of the ServiceError along with the
ResponseCode but am having some difficulties.
I call the service as follows
localClient.type(MediaType.APPLICATION_JSON);
Customer customer = localClient.path("/customer/" + customerName
.header("ContentType", "application/json")
.get(Customer.class);
When an http 500 occurs I would like to get the ServiceError. Any
suggestions on how to do this?