在这里你可以使用 Wss4jSecurityInterceptor - 一个 EndpointInterceptor 可用于对请求消息执行安全操作(当然在调用端点之前)
EndpointInterceptor
<bean class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"> <property name="validationActions" value="UsernameToken Encrypt" /> </bean>