Hi,

you just have to add the handler to your server wsdd and to your client wsdd. You also 
have to call setMaintainSession. After these steps you should see a session id in your 
soapenv header.
Remember that you ave to use a single instance of an Axis Engine. I'm ensuring that by 
with calling setEngine in the client stub here's a sample snippet:

service = new LoginManagerServiceLocator();
binding = service.getLoginManager();
((org.apache.axis.client.Stub)binding).setMaintainSession(true);
service1 = new ExceptionManagerServiceLocator();
service1.setEngine(service.getEngine());
binding1 = service1.getExeptionManager();;
((org.apache.axis.client.Stub) binding1).setMaintainSession(true);

I attached a sample client and server config file.

hope that helps,

Andre

Kai Unewisse <[EMAIL PROTECTED]> schrieb :

> Hi all,
> 
> I discovered in the mail archive a SessionHandler.java file from Glen
> Daniels.
> 
> it says in the commment :
>       Essentially, you install it on both the request and response chains of
>       your service, on both the client and the server side.
> 
> I have a DII-Client and a "normal" Java Class without any interfaces
> (java.rmi.Remote or javax.xml.rpc.server.ServiceLifecycle ).
> 
> I read a lot and figured out, that I just need to add 2 lines in my
> wsdd-file :
>        
> 
> Is this all ? When do I need the Lifecycle-interface ?
> 
> On the client side i just added :
>       service.setMaintainSession(true);
> 
> Did I missed something ?
> 
> Thanx for any pointers,
> 
> Kai


____________________________________________________
Kambrium.net Technologies, http://www.kambrium.net
<?xml version="1.0" encoding="UTF-8"?>
<deployment name="defaultClientConfig"
            xmlns="http://xml.apache.org/axis/wsdd/";
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
 <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
 <transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>
 <transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/>
 <globalConfiguration>
	 <requestFlow>
        <handler type="java:org.apache.axis.handlers.SimpleSessionHandler"/> 
	 </requestFlow>
	 <responseFlow>
        <handler type="java:org.apache.axis.handlers.SimpleSessionHandler"/> 
	 </responseFlow>
 </globalConfiguration>
</deployment>

Attachment: LoginManager.wsdd
Description: Binary data

Reply via email to