on 04-28-2004 12:35 PM
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
Hi,
the solution to your problem mainly depends on how your webservice server is implementing sessions.
The normal "http-server-way" won't work here. (Http-Servers normally use cookies or insert session-ids in the respective html files for tracking a session)
For example webservice-servers can send a session-id as the return-type of a call to some login method. This session-id then has to be used (by the client) as a parameter in subsequent calls to that webservice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.