Skip to content

Commit

Permalink
Fix (workaround?) for MID-2001 - web service failing to return a reso…
Browse files Browse the repository at this point in the history
…urce object.
  • Loading branch information
mederly committed Jul 18, 2014
1 parent 98e4be8 commit 9588a4d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -191,6 +191,12 @@ public DOMSource invokeAllowingFaults(DOMSource request) throws FaultMessage {
} catch (SchemaException e) {
throw createSystemFault(e, operationResultTypeHolder.value);
}

// brutal hack for MID-2001 (serializing and parsing eliminates the problem!)
String serialized = DOMUtil.printDom(response).toString();
LOGGER.trace("WEB SERVICE RESPONSE:\n{}", serialized);
response = DOMUtil.parseDocument(serialized);

return new DOMSource(response);
}

Expand Down

0 comments on commit 9588a4d

Please sign in to comment.