Well, Axis stores cookies in the message
context, so I guess you could simply put your cookies there and they will
be picked up for transmission to the server. Axis uses two cookies, Cookie
and Cookie2. The first contains the session ID (e.g. JSESSIONID=206048F23B7AB387C5B2801622EF2C1C).
I'm not
Is it possible to get and set cookies on the HTTP transport from the
*client* side of Axis?
I tried using the MessageContext to get the HttpRequest object, and
then set cookies there, but it seemed that when doing this from the
AXIS client side, when the HTTP message got to the receiver, my
John,
I'm not sure what you were getting back from
the MessageContext but there is no HttpRequest available from the Axis
client. HttpRequests only exist on the server. Of course, your client may
be embedded in a server side object but the HttpRequest for that would
not be the one associated
John Walker wrote:
Is it possible to get and set cookies on the HTTP transport from the
*client* side of Axis?
I tried using the MessageContext to get the HttpRequest object, and
then set cookies there, but it seemed that when doing this from the
AXIS client side, when the HTTP message got to
In that case, as I mentioned in my first
reply, extract the cookies from the message context, in the first reply
and store them somewhere (for example, in a static variable or in system
properties) that will be available in the next call. In that next call,
add the cookies to the message context
Thanks Tony for your good replies on this list.
I wonder if my approach is good in general. I suspect there will also be
non-Axis clients like .NET and maybe other frameworks on the client side
that will need to do the same.
Does anyone have a different idea to achieve the same behavior? I
No problem, Tim.
I think I'm going to have to worry about
this problem before too long, so I'd be interested in options. SOAP headers
are probably the way to go. If you implement the cookie functionality in
handlers, then it should be relatively easy to move to another method.
I'll probably look
Is it possible to get and set cookies on the HTTP transport from the
*client* side of Axis?
If so, how? Are there any examples, please?
Thank you.
Tim