Thu, 21 Jun 2012 15:23:36 +0200 -n
Stadelmann Josef <josef.stadelm...@axa-winterthur.ch> írta:

> Hi Zsolt,
> 
> 1. I don't have the solution to your problem, but maybe a meager hint.
> 
> The problem is that this cookie expires after some time.
> 
> The simplest solution would be to renew the cookie at a frequency
...

Hello Josef,

Thank you for your answer! It is definitely some food for thinking :-)
My use case finally proved to be a bit simpler, though.
After some debugging, source scrutiny and further API reading it
revealed that the headears can be gotten by:
CommonsTransportHeaders ho = (CommonsTransportHeaders)
ctx.getProperty(MessageContext.TRANSPORT_HEADERS);

The catch is that CTH is a bit buggy (or the idea of handling header
fields this way is broken). In the constructor a Header[] is passed that
can contain multiple "Set-Cookie" elements. CTH, however uses a map
internally (with names as keys) thereby loosing all but the last of
them. Fortunately the original array is still conatined in CTH, so I
could get the one I needed by reflection. Ugly, I know. If someone
knows a better way it would be welcome!

Bye!

Zsolt

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to