从春季使用安全标头使用SOAP Web服务

时间:2019-01-20 13:46:50

标签: spring-boot soap

我正在获取有关Wss4jSecurityInterceptor的消息。我正在使用> spring-boot-starter-ws(1.4.7-RELEASE)。 spring-ws-security(2.4.4-RELEASE),org.apache.ws.security wss4j(1.6.9)。

如何使用Spring WebService模板添加用户名令牌以使用SOAP服务?

1 个答案:

答案 0 :(得分:0)

对不起,Silly错误。需要升级到“ org.springframework.ws.soap.security.wss4j2.Wss4jSecurityInterceptor;” ... wss4j2而不是wss4j。

但是,仍然有Null指针异常“收到请求Exception = null的错误消息。

已解决。无法从SoapFaultClientException中正确提取应用程序消息异常对象。e.getSoapFault()。getFaultDetail()

相关问题