Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread tony . q . weddle
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread John Walker
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread tony . q . weddle
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread Tim K. (Gmane)
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread tony . q . weddle
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread Tim K. (Gmane)
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

Re: How to get/set cookies from the Axis *client* side?

2004-12-01 Thread tony . q . weddle
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

How to get/set cookies from the Axis *client* side?

2004-11-30 Thread Tim K. (Gmane)
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