Spring WS Security with XWS: Issues with Encryption/Decryption
I an one of my associates are having a tough time implementing Spring WS Security using XWSS and certificates. Without any of the security interceptors configured, the web service message exchange works perfectly. With the interceptor configured on the server for decryption only, we configured SoapUI to encrypt the outgoing message. The server keystore has the client's public key imported into it, and the SoapUI client is configured to use the client's private key for encryption. However, when we send the soap message, we simply get the following error:
Code:
com.sun.xml.wss.XWSSecurityException: More Receiver requirements [
EncryptionPolicy ] specified than present in the message; nested
exception is com.sun.xml.wss.XWSSecurityException:
com.sun.xml.wss.XWSSecurityException: More Receiver requirements [
EncryptionPolicy ] specified than present in the message
Can someone tell me what is the "EncryptionPolicy" that is needed in the error message?