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 sure what the second is for, but they are both used (if they exist) if you specify that Axis is to use HTTP sessions. You can store them in the message context using:
msgContext.setProperty(cookieName, cookie)
However, it's usually pointless setting these on the client side, since the server has to know which session you're referring to, to be able to use them. It's the server which sets the cookies on the response and Axis stores them in the message context, which means that only multiple uses of the same message context (or Call object) will get to use the same session. I guess you could use handlers to persist the cookies across different message contexts.
As for sending other cookies, there doesn't seem to be a way to do that using the standard HTTP sender, you'd have to write your own, or maybe subclass the standard one (you'd still have to specify the subclass in the client config file, though).
I haven't done any of this, so I can't help further, I'm afraid.
Tony
news <[EMAIL PROTECTED]> wrote on 30/11/2004 20:21:24:
>
> 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
>
>
- How to get/set cookies from the Axis *client* side? Tim K. (Gmane)
- Axis SimpleDeserializer error...help tony . q . weddle
- Axis SimpleDeserializer error...help Kibaya E.
- Re: How to get/set cookies from the Axis *clien... John Walker
- Re: How to get/set cookies from the Axis *c... tony . q . weddle
- Re: How to get/set cookies from the Axis *c... Tim K. (Gmane)
- Re: How to get/set cookies from the Axi... tony . q . weddle
- Re: How to get/set cookies from th... Tim K. (Gmane)
- Re: How to get/set cookies fro... tony . q . weddle
- Changing the endpoint by sendi... Nige White
- Re: Changing the endpoint ... Nige White
- Re: Changing the endpoint ... tony . q . weddle