String outputString =
org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(utDoc);
LOG.debug(outputString);
}
WSSecurityEngine newEngine = new WSSecurityEngine();
try {
newEngine.processSecurityHeader(doc, null, callbackHandler, null);
fail("Expected failure as it is not BSP compliant");
} catch (WSSecurityException ex) {
// expected
}
WSSConfig config = WSSConfig.getNewInstance();
config.setWsiBSPCompliant(false);
newEngine.setWssConfig(config);
newEngine.processSecurityHeader(doc, null, callbackHandler, null);
}