users@jax-rpc.java.net

Re: getting to the session cookie from the client side

From: Bobby Bissett - Javasoft <robert.bissett_at_sun.com>
Date: Thu, 04 Dec 2003 16:11:04 -0500

>
> I was wondering if there's any way to get to the session cookie from the
> client side (i.e. from the stubs). This would be useful to be able to send
> other non JAX-RPC get/put requests to a servlet running next to the
> JAX-RPC servlet but using the same user session without reauthenticating
> again.

Hi Tim,

This may do it for you: in the client handler's handleResponse() method,
just do:

       SOAPMessageContext mc = (SOAPMessageContext) context;
       SOAPMessage m = mc.getMessage();
       MimeHeaders headers = m.getMimeHeaders();
       Iterator iter = headers.getAllHeaders();

Then iterate through the headers to get the right one using
MimeHeader.getName() and MimeHeader.getValue().

Cheers,
Bobby



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net