You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Samisa Abeysinghe <sa...@gmail.com> on 2005/01/31 03:04:47 UTC

Re: regarding setMaintainSession()

Hi Manohar,
     setMaintainSession() can be used at client stub level to specify
if the client should keep  track of session or not with the server.
Wen I say session here, I mean the cookie based session, and not SOAP
header based session.

> At what point do we need to call this API in the client code ?
     Please have a look at samples/client/session/cookie/Client.cpp.
     I hope this will answer all the questions you have on the use of this API.
     
    You got to have a session sensitive service to test this. I have
used an increment service, where the server first sends 10, and
subsequenltly send 20, 30, 40 etc. for subsequest session sensitive
calls (i.e. calls made after setMaintainSession(true) being called on
stub.

    Please have a look at readme.txt on how to test this with Axis Java.

BTW, I was under the impression that API doc that I had done was
sufficient. My understanding is that this additional infomation should
go in a seperate doc, may be user guide, which we do not have
currently. Thoughts on this?

    Please let me know if you have any other concerns.

HTH.

Regards,
Samisa...


On Thu, 27 Jan 2005 20:17:30 +0530, Manohar K Chintala
<cm...@in.ibm.com> wrote:
> 
> 
> Hi Samisa,
> 
> I am trying to write a test for setMaintainSession ()  API. The
> doucmentation for setMaintainSession() appreas to be not sufficient enough
> to understand the significance of this API.
> At what point do we need to call this API in the client code ? Is it after
> creating the Stub object or beore/after invoking the service ? If used,
> how/where can we observe the effect of this method when either set to true
> or false.  Is this intended for cookie based sessions ?
> 
> Request you to provide inputs.
> 
> Regards
> Manohar
> --------------------------------------------------
> Manohar Kumar.Ch
> IBM Web Services Client for C/C++
> India Software Labs,III floor, Golden Enclave,
> Aiport Road, Bangalore-560017
> Ph:- 91-80-25094304
> internet id: cmanohar@in.ibm.com
> 
>

Re: regarding setMaintainSession()

Posted by Samisa Abeysinghe <sa...@gmail.com>.
> we should explicitly mention that
> this API is intended for cookie based session.

When I was implementing this, I was under the impression that SOAP
header based session would also use the same mechanism to
enable/disable the session.
I am not sure if Sanjaya used the same API as the session enabler.
In that case, this applies to both cookie and SOAP header based sessions.

However looking at the
samples\client\session\headers\sessionclient\CounterClient.cpp, it
looks to me that SOAP header based sessions do not use this. My
question is, how then do we enable/disable session in case of SOAP
header based sessions?

Sanjaya, could you please comment on this.

Thanks,
Samisa...

On Mon, 31 Jan 2005 09:47:41 +0530, Manohar K Chintala
<cm...@in.ibm.com> wrote:
> 
> 
> Hi Samisa,
> 
> I agree with you. We need some more details on usage of this API in the
> documentation.When we say session here, we should explicitly mention that
> this API is intended for cookie based session.
> If an API has some  dependency or prereqs for it's usage it need to be well
> documented which gives fair idea to end users while using these APIs.
> 
> Regards
> Manohar
> 
>             Samisa Abeysinghe
>             <samisa.abeysingh
>             e@gmail.com>                                               To
>                                       Apache AXIS C Developers List
>             01/31/2005 07:34          <ax...@ws.apache.org>
>             AM                                                         cc
> 
>                                                                   Subject
>             Please respond to         Re: regarding setMaintainSession()
>              "Apache AXIS C
>             Developers List"
> 
> 
> Hi Manohar,
>     setMaintainSession() can be used at client stub level to specify
> if the client should keep  track of session or not with the server.
> Wen I say session here, I mean the cookie based session, and not SOAP
> header based session.
> 
> > At what point do we need to call this API in the client code ?
>     Please have a look at samples/client/session/cookie/Client.cpp.
>     I hope this will answer all the questions you have on the use of this
> API.
> 
>    You got to have a session sensitive service to test this. I have
> used an increment service, where the server first sends 10, and
> subsequenltly send 20, 30, 40 etc. for subsequest session sensitive
> calls (i.e. calls made after setMaintainSession(true) being called on
> stub.
> 
>    Please have a look at readme.txt on how to test this with Axis Java.
> 
> BTW, I was under the impression that API doc that I had done was
> sufficient. My understanding is that this additional infomation should
> go in a seperate doc, may be user guide, which we do not have
> currently. Thoughts on this?
> 
>    Please let me know if you have any other concerns.
> 
> HTH.
> 
> Regards,
> Samisa...
> 
> On Thu, 27 Jan 2005 20:17:30 +0530, Manohar K Chintala
> <cm...@in.ibm.com> wrote:
> >
> >
> > Hi Samisa,
> >
> > I am trying to write a test for setMaintainSession ()  API. The
> > doucmentation for setMaintainSession() appreas to be not sufficient
> enough
> > to understand the significance of this API.
> > At what point do we need to call this API in the client code ? Is it
> after
> > creating the Stub object or beore/after invoking the service ? If used,
> > how/where can we observe the effect of this method when either set to
> true
> > or false.  Is this intended for cookie based sessions ?
> >
> > Request you to provide inputs.
> >
> > Regards
> > Manohar
> > --------------------------------------------------
> > Manohar Kumar.Ch
> > IBM Web Services Client for C/C++
> > India Software Labs,III floor, Golden Enclave,
> > Aiport Road, Bangalore-560017
> > Ph:- 91-80-25094304
> > internet id: cmanohar@in.ibm.com
> >
> >
> 
>

Re: regarding setMaintainSession()

Posted by Manohar K Chintala <cm...@in.ibm.com>.



Hi Samisa,

I agree with you. We need some more details on usage of this API in the
documentation.When we say session here, we should explicitly mention that
this API is intended for cookie based session.
If an API has some  dependency or prereqs for it's usage it need to be well
documented which gives fair idea to end users while using these APIs.

Regards
Manohar



                                                                           
             Samisa Abeysinghe                                             
             <samisa.abeysingh                                             
             e@gmail.com>                                               To 
                                       Apache AXIS C Developers List       
             01/31/2005 07:34          <ax...@ws.apache.org>          
             AM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: regarding setMaintainSession()  
              "Apache AXIS C                                               
             Developers List"                                              
                                                                           
                                                                           
                                                                           
                                                                           




Hi Manohar,
     setMaintainSession() can be used at client stub level to specify
if the client should keep  track of session or not with the server.
Wen I say session here, I mean the cookie based session, and not SOAP
header based session.

> At what point do we need to call this API in the client code ?
     Please have a look at samples/client/session/cookie/Client.cpp.
     I hope this will answer all the questions you have on the use of this
API.

    You got to have a session sensitive service to test this. I have
used an increment service, where the server first sends 10, and
subsequenltly send 20, 30, 40 etc. for subsequest session sensitive
calls (i.e. calls made after setMaintainSession(true) being called on
stub.

    Please have a look at readme.txt on how to test this with Axis Java.

BTW, I was under the impression that API doc that I had done was
sufficient. My understanding is that this additional infomation should
go in a seperate doc, may be user guide, which we do not have
currently. Thoughts on this?

    Please let me know if you have any other concerns.

HTH.

Regards,
Samisa...


On Thu, 27 Jan 2005 20:17:30 +0530, Manohar K Chintala
<cm...@in.ibm.com> wrote:
>
>
> Hi Samisa,
>
> I am trying to write a test for setMaintainSession ()  API. The
> doucmentation for setMaintainSession() appreas to be not sufficient
enough
> to understand the significance of this API.
> At what point do we need to call this API in the client code ? Is it
after
> creating the Stub object or beore/after invoking the service ? If used,
> how/where can we observe the effect of this method when either set to
true
> or false.  Is this intended for cookie based sessions ?
>
> Request you to provide inputs.
>
> Regards
> Manohar
> --------------------------------------------------
> Manohar Kumar.Ch
> IBM Web Services Client for C/C++
> India Software Labs,III floor, Golden Enclave,
> Aiport Road, Bangalore-560017
> Ph:- 91-80-25094304
> internet id: cmanohar@in.ibm.com
>
>