|
|
HOWTO Decrypt but keeping signature info
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 :Code:
lt;bean id=quot;webServiceTemplatequot; class=quot;org..ws.client.core.WebServiceTemplatequot; parent=quot;abstractWstquot;gt;
lt;property name=quot;interceptorsquot;gt;
lt;listgt;
lt;ref bean=quot;payloadValidatingInterceptorquot; /gt; lt;!-- XML validation check --gt;
lt;ref bean=quot;wsSecurityInterceptorSignquot; /gt; lt;!-- XwsSecurityInterceptor for signing --gt;
lt;ref bean=quot;soapFileInterceptorquot; /gt; lt;!-- custom interceptor reading quot;signed-onlyquot; soapmessages --gt;
lt;ref bean=quot;wsSecurityInterceptorEncryptquot; /gt; lt;!-- XwsSecurityInterceptor for encryption --gt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;
It works well for the request, but the response is unsigned when handled by the wsSecurityInterceptorEncrypt.
I really need to have a signed-decrypted response...
Thanks,
Natha
No one knows how to decrypt without unsigning ? |
|