Hi
On 1/17/07, Mark Cavage <[EMAIL PROTECTED]> wrote:
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).
Don't think that XFire-711 has anything to do with your problem,
handler chaining is not a good idea :D
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?
Remember that action order is very important, so try to change it.
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!
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email