943,794 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 18450
  • VB.NET RSS
Jun 14th, 2004
0

How to maintain session for Web Services Object?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanoy is offline Offline
2 posts
since Jun 2004
Jun 15th, 2004
0

Re: How to maintain session for Web Services Object?

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

p.s. this should be posted in the asp .net forum
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
Jun 15th, 2004
0

Re: How to maintain session for Web Services Object?

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanoy is offline Offline
2 posts
since Jun 2004
Jun 16th, 2004
0

Re: How to maintain session for Web Services Object?

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.
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Controlling windows scroll
Next Thread in VB.NET Forum Timeline: VB.net - worthwhile to go for?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC