users@jax-rpc.java.net

Re: SOAP Headers

From: Bobby Bissett - Javasoft <Robert.Bissett_at_Sun.COM>
Date: Thu, 10 Nov 2005 13:50:27 -0500

Edoardo Causarano wrote On 11/10/05 06:44,:
> Can anyone point me to a working, complete with requirements, example
> of SOAP Header processing in jax-rpc RI?
> I've been trying unsuccessfully to get a simple handler filter to log
> "hello world" on message retrieval and nothing ever happens.
> I'd like to get handlers and headers to work, please.

I don't have a full example of jaxrpc using handlers (though there are
handler samples in the JAX-WS 2.0 bundles), but the AttachmentsSample
example in the jwsdp uses a handler on the client side. The latest jwsdp
can be found here:
http://java.sun.com/webservices/downloads/webservicespack.html.

To add a handler to your service, you can add the <handlerChains>
element to your config-server.xml following the example in
AttachmentsSample/etc/config-client.xml. Just change <chain
runAt="client"> to <chain runAt="server"> and, of course, specify the
class name of the handler you're using.

If you're trying to specify the handler a different way, let me know
what you're seeing when you build the service. From the above, it sounds
like you're saying that the handler is not being invoked.

Cheers,
Bobby