Hi 

does someone know how user sessions are implemented for Axis2/C ?

Do I have the possibility to setup the same scope(s) as with the Java version 
of Axis2?

If yes how is it done? which .C files or .H. files do I have to check in the 
axis2/c code set?

I need scope="soapsession" as defined for some axis2 java services in 
service.xml, so
I need this now as well for services I am going to implement using Axis2/C 
techniq.

If scope="sopasession" is supported which release of axis2/c supports it?

        where can I read about that?



BTW: what (which variable) keeps sessions appart from each other in axis2/c 
simple http server?

        in the end we need a process for each user session. 

        for java axis2 services this works very nicely now. as each session 
creates a service object
        an real one session one instance relationship. 

        But how do I have to proceed and do it for axis2/C services?

        at Corba times, this was the IOR, or to some extent the environment 
variable which gives 
        you an idea about WHO IS CALLING INTO THE SERVICE (METHOD).

        what is it in axis2/c which differentiates one session from each other 
when I reach myService5

Even basic authentication works, (which I have not yeat read as we go through 
our own UAF 
        (user authentication facility) in OpenVMS, what can be used in Axis2/C 
kep one
        scope="soapsession" appart from each other?

How is scope="sopasession" implemented in Axis2/C  ?


In the java version of axis2 I have implemented in my service the following 
methods and set scope="soapsession"

        public void init(ServiceContext sCtx) throws XMLStreamException, 
WsiException {
        called when a new session starts

        public void destroy(ServiceContext sCtx) throws XMLStreamException, 
WsiException {
        called when a session terminates and on time out

so far for infrastructure need, AND I have implemented

        public OMElement login(OMElement element) throws XMLStreamException, 
WsiException {     
        called by the users client to login

        public OMElement fktmap(OMElement element) throws XMLStreamException, 
WsiException {
        called by the client application code passing large data structures 
        keeping a major and minor function ID as its two first named valuen 
pairs 

        public OMElement logout(OMElement element) throws XMLStreamException, 
WsiException {    
        called when the user closes one of its clients  

for our legacy server needs.



        what do I have to implement for scope="soapsession" to work?


BTW: I could think about setting up a cache and have the session Id requested 
from axis2 http server and 
then use it as a key to a instance of a C++ object representig a OpenVMS 
process. The idea is that each
user must have more then one session simultaneously, but that each session has 
to pass authentication
of user first. Thats why we have login and logout.

Any thougths very appreciated.

Josef.Stadelmann
@axa-winterthur.ch 



Reply via email to