Hi,
I'm trying to sign both a Timestamp and body of a SOAP request. I saw there
is a JIRA bug that was closed with resolution "won't be fixed" (XFIRE-711).
So, my question is, if the code below is what I'm trying to do, and it's
known not to work - how do I get around this?
Properties props = new Properties();
props.setProperty(WSHandlerConstants.ACTION,
WSHandlerConstants.SIGNATURE + " " +
WSHandlerConstants.TIMESTAMP);
props.setProperty(WSHandlerConstants.SIG_KEY_ID,
"DirectReference");
props.setProperty(WSHandlerConstants.USER, "Customer");
props.setProperty(WSHandlerConstants.SIG_PROP_FILE,
"wsse-sig.properties");
props.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS,
PasswordHandler.class.getName());
props.setProperty(WSHandlerConstants.TTL_TIMESTAMP,"15");
props.setProperty(WSHandlerConstants.SIGNATURE_PARTS,
"{Element}{
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{}{http://schemas.xmlsoap.org/soap/envelope/}Body
");
client.addOutHandler(new WSS4JOutHandler(props));
Thanks!