I am using Wildfly and have this code:

Response xxxxDetailsResponse = clientDetailsClient.target(targetForxxxxDetailsService)
.queryParam(propertiesService.getSystemProperty("xxxx_details_including_xxxxxxx"), "true")
.request(MediaType.APPLICATION_XML)
.header("jwt", jWTObject.getJwt())
.get(Response.class);

int statusCode = xxxxDetailsResponse   .getStatus();
logger.info("Status = " + statusCode);
if (statusCode != 200) {
logger.severe( xxxxDetailsResponse  .getStatusInfo().getReasonPhrase());
logger.severe( xxxxDetailsResponse  .readEntity(String.class));
} else {
logger.info("Media Type:" + xxxxDetailsResponse   .getMediaType());
xxxxDetailsProfileWrapper xxxxDetailsProfileWrapper = xxxxDetailsResponse.readEntity(xxxxDetailsProfileWrapper.class);  

The problem is that the "spec" I inteact with has fields added over time (albeit optional)...

The unmarshalling fails and then I have to update the Entites I am unmarshalling into to add the new fields...

I can't seem to find an Annotation or a setting that says "Ignore unknown fields arriving in supplied Json"....

Please can you advise what I am missing here...

Thx


Virus-free. www.avast.com