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?
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2011-07-22T20:18:10Z by mbates
Pinned topic Callback Handler for JAX-WS client service in WebSphere 7.0/RAD 7.5
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-07-22T20:18:10Z at 2011-07-22T20:18:10Z by mbates
DGawron 10000054HC50 PostsACCEPTED ANSWER
Re: Callback Handler for JAX-WS client service in WebSphere 7.0/RAD 7.52011-07-22T18:05:10Z in response to mbatesIt doesn't sound like you are using Web Experience Factory. I'd suggest posting this question to a RAD or WebSphere forum; you'll get a better response that way.