How to maintain session for Web Services Object?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2004
Posts: 2
Reputation: hanoy is an unknown quantity at this point 
Solved Threads: 0
hanoy hanoy is offline Offline
Newbie Poster

How to maintain session for Web Services Object?

 
0
  #1
Jun 14th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 634
Reputation: Slade has a spectacular aura about Slade has a spectacular aura about 
Solved Threads: 7
Slade's Avatar
Slade Slade is offline Offline
Practically a Master Poster

Re: How to maintain session for Web Services Object?

 
0
  #2
Jun 15th, 2004
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
Formerly known as Slade.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2
Reputation: hanoy is an unknown quantity at this point 
Solved Threads: 0
hanoy hanoy is offline Offline
Newbie Poster

Re: How to maintain session for Web Services Object?

 
0
  #3
Jun 15th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 27
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: How to maintain session for Web Services Object?

 
0
  #4
Jun 16th, 2004
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.
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC