In Apache SOAP, the a SOAPHTTPConnection instance saves the cookies 
it receives from a response and sends them back in subsequent 
requests.  Therefore, if you re-use a SOAPHTTPConnection instance 
across multiple calls, those calls will be part of the same session, 
assuming, of course, that session support is activated on the server 
and uses cookies.

On the server, you can handle sessions completely transparently by 
giving services a scope of session.  That means an instance of the 
service is created for each session, which means any state maintained 
by an instance will be the state for a single session.  
Alternatively, you can access servlet sessions from your service and 
store data in those, so that you can give your service a different 
scope, such as application scope in which a single instance will 
service all requests.

On 4 Jun 2003 at 21:54, Bratislav Ljubisic wrote:

> Hi everybody,
> 
> I just wanted to ask is there any way of preserving session information,
> like in servlets. What I had in mind is: I would like to have one SOAP
> application (client) that will login on server, and when it does I would
> like to preserve those information in session. Later, from that same
> SOAP application (client) I would like to extract session object and use
> it for validation purposes. Is that possible and how?
> 
> -- 
> Bratislav Ljubisic
> A: Bul.Arsenija Carnojevica 171/26
>    11000 Beograd
>    Srbija, Yugoslavia
> P: +381 11 123 375
> M: +381 63 8 505 594
> F: Stichting Kunst en Industrie
> E: [EMAIL PROTECTED]
>    [EMAIL PROTECTED]
>    [EMAIL PROTECTED]
>    [EMAIL PROTECTED]
> W: www.fmmedia.co.yu
>    www.kunstenindustrie.com
> I: 11412608
> ----------------
> The first sign of maturity is the discovery that the volume knob also
> turns to 
> the left.
> 
> 


Scott Nichol

Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.


Reply via email to