In your configuration you only configure the interceptor. Currently it takes up only memory just hanging around and doing nothing. You should hook this interceptor up to your WebServiceTemplate
(or class that extends WebServiceGatewaySupport
.
Assuming you have one of those you should have something like this.
<bean id="yourClient" class="YourClientClass">
<property name="interceptors" ref="wsSecurityInterceptor"/>
// Your other properties here
</bean>
This wired your interceptor to the WebServiceTemplate
used, without it the interceptor is basically not used.