Glen,

The answer is YES, you can do it programmatically

Service side API

Endpoint.getBinding().setHandlerChain(List<Handler>)


Client side API

BindingProvider.getBinding().setHandlerChain(List<Handler>)

Besides, the Service API

Service.setHandlerResolver()

Hope it helps,
James

Hello,

The JAX-WS specification--as well as our jax-ws handler
sample[1]--specify/show two ways to attach a JAX-WS handler to a CXF
client or service:

1.) For the service, configuration via annotations and an XML file
(e.g., under /commons in [1]).

2.) For the client, programmatically within the Java class making the
web service call.

Question:  Does anyone know of additional ways one can attach a JAX-WS
handler to the web service or client?  For example, can I
programmatically attach handlers to the web service implementation, or
do XML configuration of handler chains on the *client* side?

Thanks,
Glen

[1] http://tinyurl.com/2ps3y2


Reply via email to