Arjen Poutsma opened SWS-345 and commented
When using SAAJ and WSS4J on for outgoing messages, the digest created is incorrect, which results in signature verification failures. This is due to the fact that  the Document exposed via SOAPMessage.getSOAPPart() is out of sync. Calling SOAPMessage.saveChanges() fixes this.
Affects: 1.5
Referenced from: commits 89f054f, 43eb72f