Skip to Content
0
Former Member
Apr 28, 2004 at 11:35 AM

Problems using a webservice with session activation

40 Views

Hello

I´m trying to access a webservice that holds a session for every user.

My problem is, that whenever i use a method, a new session on my webservice server is cerated, although I use the same webservice instance on the client side.

Example :

IMyWebService myWebService = (IMyWebService)PortalRuntime.getRuntimeResources().getService("myProject.MySampleWS");

myWebService.doLogin(username, pwd);

myWebService.getUserInfos();

This code produces two sessions on my webservice server, so that getUserInfos() fails,because it uses a different session than doLogin.

Does anyone know how I can use the same session as long as I am using the same instance of IMyWebService ?

Regards

Alexander