You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ol...@airfrance.fr on 2004/09/07 08:49:50 UTC

Losing cookie information when passing from http to https




Hi !

Our SOAP Axis client sends first request in http, and then switches to https.
It then loses the cookie information (taking a look at the Http header shows
that the "Cookie" tag is not there any more).
Actually, this happens in the setTargetEndpointAddress() method of the Call
object. The source code tests whether the protocol is the same, and if not,
creates another Transport object, losing consequently the cookie information
that is necessary to maintain the session.
The comment written in the source code is the following :
            // Technically the session data should be in the message
            // context so that it can be persistent across transports
            // as well, but for now the data is in the Transport object.
Does this mean that this feature is not what have been wanted ? Or that this is
going to change in a future version ?
If so, how is it possible to keep the same Transport object or to initialise
the other Transport object with the same data ?
I tried to use the registerTransportForURL() method of the Service class but
this method can be used only inside the package...
Thanx in advance for any hint on this topic.

Regards,

Olivier

P.S. : this message was also sent on the bugzilla database (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=30991), but I did not get any answer.
If somebody here has a nice and neat way to overcome this problem, I'd be grateful to hear from her.

----------------
L'acces immediat aux meilleurs tarifs Air France et au billet electronique
sur http://www.airfrance.com

For immediate access to the best Air France fares and to electronic
tickets, visit our website http://www.airfrance.com

----------------
Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et secrets. Ce message est adresse a l'individu ou l'entite
dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon
destinataire, nous vous demandons de ne pas lire, copier, utiliser ou
divulguer cette communication. Nous vous prions de notifier cette erreur a
l'expediteur et d'effacer immediatement cette communication de votre
systeme.
The information contained in this message is privileged, confidential, and
protected from disclosure. This message is intended for the individual or
entity adressed herein. If you are not the intended recipient, please do
not read, copy, use or disclose this communication to others; also please
notify the sender by replying to this message, and then delete it from your
system.