如何在 WebSphere 7.0/RAD 7.5 中为 JAX-WS 客户端服务添加自定义回调处理程序
我正在尝试将自定义回调处理程序添加到客户端 Web 服务 (JAX-WS),但找不到与其相关的任何信息。所有信息都需要密钥库,而 JAX-RPC 不需要密钥库。
我正在将多个客户端 Web 服务从 JAX-RPC 转换为 JAX-WS,并且我们使用自定义用户名令牌生成器实现 WS-Security 标头。对于 JAX-RPC,这是通过一个简单的向导完成的,您可以在其中创建令牌和令牌生成器,并在运行时插入 WSSE 信息(使用自定义 CallbackHandler)。对于 JAX-WS,所有 WS-Security 向导都需要密钥库,并且没有关于仅添加自定义 CallbackHandler 的信息。对于 JAX-RPC,此配置是在部署描述符的“WS Extension”和“WS Binding”选项卡中完成的。我尝试从“服务”> 中执行此操作我的 Web 项目中的客户端(列出了 RPC 和 WS 服务),但再次遇到了密钥库问题。我也从管理控制台尝试过它,但它没有按配置工作。
我正在使用 RAD 7.5 和 WebSphere App Server 7.0。
如何将 WSSE 的自定义回调处理程序添加到客户端 JAX-WS Web 服务?
I'm trying to add a custom callback handler to a client web service (JAX-WS), but cannot find any information related to it. All the information out there requires a keystore, which was not required as part of JAX-RPC.
I'm converting several client web services from JAX-RPC to JAX-WS, and we implement the WS-Security header with a custom username token generator. For JAX-RPC, this is done via a simple wizard, where you create the token and token generator, and it inserts the WSSE information at runtime (using the custom CallbackHandler). For JAX-WS, all the WS-Security wizards require a keystore, and there's no information on just adding the custom CallbackHandler. For JAX-RPC, this configuration was done in the "WS Extension" and "WS Binding" tabs of the deployment descriptor. I've attempted to do it from the Services > Clients in my web project (which lists both RPC and WS services), but again, running into the keystore issue. I've also attempted it from the adminconsole, but it's not working as configured.
I'm using RAD 7.5 and WebSphere App Server 7.0.
How do I add a custom callback handler for WSSE to a client JAX-WS web service?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直无法找到如何通过 RAD/WebSphere 进行配置。相反,我使用 WSS API 将用户名/密码 wsse 标头添加到来自客户端的请求中。这与 JAX-RPC 配置的工作原理相同。可以在 IBM 站点上找到 WSS 代码:http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/twbs_confwssgeneratortoken.html< /a>
I have not been able to find out how to configure this via RAD/WebSphere. Instead, I've used the WSS API to add the username/password wsse header to the request from the client. This works identical to the JAX-RPC configuration. The WSS code can be found on the IBM site here: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/twbs_confwssgeneratortoken.html