Hi all,
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.Code:<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" parent="abstractWst"> <property name="interceptors"> <list> <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 --> </list> </property> </bean>
I really need to have a signed-decrypted response...
Thanks,
Natha



Reply With Quote
