954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to maintain session for Web Services Object?

undefined

Hello,

I am using a webservice which has many objects and methods. Before being able to access any method, a method called authenticateuser is needed to be executed.

Taking ws as the webservice object, and after successfully executing the ws.authenticateuser(successfull result is shown with the boolean return value set to True), the session of ws gets lost and I'm not able to access any other method or object.

Any ideas please?

Thanks,

Sam

hanoy
Newbie Poster
2 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

have you tried actually storing it in a session?

Session("ws") = ws.authenticateuser

Sorry, I'm not sure if I'm going to be very helpful with this one :S

p.s. this should be posted in the asp .net forum :)

Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
 

Hi,

Actually this is a windows application project developed in VB.NET, where the client application needs to retrieve a value stored in a web service object. The method to retrieve that object can't be executed unless the authenticateuser method is first successfully executed. The problem is that even if this happens, the webservice object looses the session and can't access any method.

Sam

hanoy
Newbie Poster
2 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

The web service is an ASP.NET application, and thus has session. So, again, have you tried storing it? ;-).

The way most web services work (that require authentication), is by taking the login user and password in each method.

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You