As a first question I have a difficulty using WebServiceTemplate + XwsSecurityInterceptor with signing AND encrypting of SOAP messages.
Everything works but I need something particular, I need to keep a trace of the requests and responses signed but not encrypted.
So I did this kind of thing :
It works well for the request, but the response is unsigned when handled by the wsSecurityInterceptorEncrypt.
<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" parent="abstractWst">
<ref bean="payloadValidatingInterceptor" /> <!-- XML validation check -->
<ref bean="wsSecurityInterceptorSign" /> <!-- XwsSecurityInterceptor for signing -->
<ref bean="soapFileInterceptor" /> <!-- custom interceptor reading "signed-only" soapmessages -->
<ref bean="wsSecurityInterceptorEncrypt" /> <!-- XwsSecurityInterceptor for encryption -->
I really need to have a signed-decrypted response...