Signature verification using Spring WS 1.0 + Castor XML 1.1.1 + XWSS 3.0
I'm using a standard web service client extending WebServiceGatewaySupport which perform XWSS Signature on messages.
If I use XMLBeans for marshalling the code works fine, but if I use Castor for marshalling, WebSphere 6.1 returns following error:
Code:
org.springframework.ws.soap.client.SoapFaultClientException: com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5620E: Error verifying signature: Core validity=false Signed info validity=true Signed info message='null' Ref[java.util.HashMap$KeyIterator@4bfc4bfc](validity=false message='Digest value mismatch: calculated: NoZcIy+Zua1zYIetixBt2Kogfe8=' uri='#XWSSGID-12402971827962088034037' type='null').
It's just the same code with different marshalling setters.
Even I've forced UTF-8 encoding for messages without success.
Thanks in advance.