tags:

views:

61

answers:

3

How can we maintain State in Webservices ?

A: 

This should help you, IF it is what you're looking for.

http://www.beansoftware.com/ASP.NET-Tutorials/Managing-State-Web-Service.aspx

Suvesh Pratapa
+4  A: 

Web services are by nature stateless. Any attempt to maintain state is a hack, since you may hold something that will be used by the next request from the user, which will never come.

If you really need it, just keep it in session. For larger data sets, keep them out of session, but add session listener to cleanup that data when session expires.

Dev er dev
A: 

Services should be stateless; if there's state to be maintained, it's the client's job to do it.

duffymo