首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >添加SOAP网关|ws:出站网关

添加SOAP网关|ws:出站网关
EN

Stack Overflow用户
提问于 2015-09-04 07:50:12
回答 1查看 607关注 0票数 1

目前,我有一个调用出站SOAP服务的wsgateway。现在,提供者希望将安全标头添加到传出的SOAP消息。

为了使服务调用成功,我需要将以下内容包含在SOAP:Header中。

代码语言:javascript
复制
<wsse:Security soapenv:mustUnderstand="1"
            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsse:Username>xxxx</wsse:Username>
                <wsse:Password  Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxxx</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>

如何使用Header enricher或mapper来解决这个问题。当前实施:

代码语言:javascript
复制
<int:chain input-channel="doOutBoundCallNow" output-channel="printChannel">
            <ws:outbound-gateway uri="http://localhost:8082/mockBinding"></ws:outbound-gateway>



</int:chain>
EN

回答 1

Stack Overflow用户

发布于 2015-09-04 23:42:36

你有没有看过Spring WS documentation

您应该为WSHandlerConstants.USERNAME_TOKEN配置Wss4jSecurityInterceptor,并将此interceptor添加到<int-ws:outbound-gateway>

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32387152

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档