No, Viewstate is closely related to using the browser as an HTTP client.
For web services, you have two options: let the client monitor the status of the conversation or let the server monitor it.
Using server session state and passing a cookie (either an HTTP cookie or some kind of cookie inside a SOAP envelope)
the client needs to monitor, save, and possibly transmit the state of the conversation to the server.
About Viewstate is the state of the page presented to the user, and as an implementation, it is closely related to the browser. When a page is displayed, browsing information is used to populate the page. Later, when the form is placed on the page, the corresponding form data is then transferred to the server, some of which may have been set using the viewstate magic. The server needs to check the client input despite using the viewstate on the client side. You can see that the viewstate combined with some lightweight population logic on the browser side is a way for the client to control the state of the page the user sees, but the server cannot refuse to check the status of the conversation.
This approach can be applied in a web services application, but since it does not depend on the browser or on a specific presentation (or generally on any presentation), this is a do-it-yourself matter. The client application maintains and uses any dialog state in a way that is suitable for the client.
On the other hand, server-managed state means that each "session" or "session" stores state information stored on the server. The client does not have to track information if the server does this. The client simply presents the token (or cookie, if you want) to the server, and the server uses it as a search key in the status table. The server is primarily responsible for checking the entire state stored on behalf of the client.
Since you are using .NET, you might be interested to know that the workflow can be used on the server side to monitor the status of web services (WCF) . This approach supports WS network protocols - it does not provide any specific client technologies or platforms.
source share