简体   繁体   English

如何在 WebSphere 7.0/RAD 7.5 中为 JAX-WS 客户端服务添加自定义回调处理程序

[英]How to add a custom Callback Handler for JAX-WS client service in WebSphere 7.0/RAD 7.5

I'm trying to add a custom callback handler to a client web service (JAX-WS), but cannot find any information related to it.我正在尝试将自定义回调处理程序添加到客户端 web 服务(JAX-WS),但找不到任何相关信息。 All the information out there requires a keystore, which was not required as part of JAX-RPC.那里的所有信息都需要一个密钥库,这不是 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.我正在将几个客户端 web 服务从 JAX-RPC 转换为 JAX-WS,并且我们使用自定义用户名令牌生成器实现 WS-Security header。 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).对于 JAX-RPC,这是通过一个简单的向导完成的,您可以在其中创建令牌和令牌生成器,并在运行时插入 WSSE 信息(使用自定义 CallbackHandler)。 For JAX-WS, all the WS-Security wizards require a keystore, and there's no information on just adding the custom CallbackHandler.对于 JAX-WS,所有 WS-Security 向导都需要一个密钥库,并且没有关于仅添加自定义 CallbackHandler 的信息。 For JAX-RPC, this configuration was done in the "WS Extension" and "WS Binding" tabs of the deployment descriptor.对于 JAX-RPC,此配置是在部署描述符的“WS Extension”和“WS Binding”选项卡中完成的。 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.我试图从我的 web 项目(列出 RPC 和 WS 服务)中的服务 > 客户端执行此操作,但再次遇到密钥库问题。 I've also attempted it from the adminconsole, but it's not working as configured.我也从 adminconsole 尝试过,但它没有按配置工作。

I'm using RAD 7.5 and WebSphere App Server 7.0.我正在使用 RAD 7.5 和 WebSphere App Server 7.0。

How do I add a custom callback handler for WSSE to a client JAX-WS web service?如何将 WSSE 的自定义回调处理程序添加到客户端 JAX-WS web 服务?

I have not been able to find out how to configure this via RAD/WebSphere.我无法找到如何通过 RAD/WebSphere 进行配置。 Instead, I've used the WSS API to add the username/password wsse header to the request from the client.相反,我使用 WSS API 将用户名/密码 wsse header 添加到来自客户端的请求中。 This works identical to the JAX-RPC configuration.这与 JAX-RPC 配置相同。 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 WSS 代码可以在 IBM 站点上找到: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info /ae/ae/twbs_confwssgeneratortoken.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用RAD的Websphere JAX-WS Web服务客户端不允许Java Project - Websphere JAX-WS web service client using RAD does not allow Java Project RAD-如何在Websphere应用程序服务器管理控制台中为JAX-WS添加用户名令牌 - RAD - How to add username token for JAX-WS in websphere application server admin console 具有自定义 ssl 套接字工厂的 websphere 中的 JAX-WS 客户端 - JAX-WS client in websphere with custom ssl socket factory WebSphere JAX-WS 响应处理程序失败 - WebSphere JAX-WS Response Handler fails 如何在Websphere(WAS)上的所有结果jax-ws客户端请求中添加http-header? - How to add http-headers to all outcome jax-ws client's requests on websphere(WAS)? RAD中具有Websphere7 javaAccessorNotSet错误的JAX-WS错误 - JAX-WS in RAD with websphere7 javaAccessorNotSet error Java JAX-WS Web Service 调用Axis2 客户端,如何添加自定义http 请求头? - Java JAX-WS Web Service calls Axis2 client, how do I add custom http request header? 如何在JAX-WS客户端中使用SOAP处理程序 - how to imlement a SOAP handler in JAX-WS client 如何为JAX-WS Web服务处理程序提供参数? - How to provide a parameter to a JAX-WS web service handler? 如何在iOS中使用带有客户端的Web服务Java JAX-WS? - How to consume web service java JAX-WS with client in iOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM