【发布时间】:2016-01-27 09:03:30
【问题描述】:
我的项目使用 Spring WS 来使用 SOAP Web 服务。 Web 服务调用通过 webServiceTemplate.marshalSendAndReceive(..) 到目前为止一切正常。
最近,Web 服务发布者通知我们实施 WS-I Basic Profile 1.1 以便能够获得响应。
以下是接收到的样本,应该在请求的 SOAP Header 上发送。
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username> </wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"> </wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
有配置这个的例子吗?在这种情况下如何继续使用 Spring-WS 安全性?
任何指针将不胜感激。
【问题讨论】:
标签: spring web-services soap spring-security spring-ws