Do webservice have state?, DOT NET Programming

Webservices as such do not have any mechanism by which they can maintain their state. The Webservices can access ASP.NET intrinsic objects such as application, session and many more if they inherit from "WebService" base class.

<%@ Webservice class="TestWebServiceClass" %> Imports System.Web.Services

Public class TestWebServiceClass

Inherits WebService

Public Sub SetSession(value As String)

session("Val") = Value

End Sub end class

Above is a sample code which sets as session object called as "val". TestWebserviceClass is inheriting from WebService to access the session and application objects.

Posted Date: 9/22/2012 2:18:06 AM | Location : United States







Related Discussions:- Do webservice have state?, Assignment Help, Ask Question on Do webservice have state?, Get Answer, Expert's Help, Do webservice have state? Discussions

Write discussion on Do webservice have state?
Your posts are moderated
Related Questions
How can you make a simple harmonic motion in visual basic 2010 where you will ask an input to the user and your output will be a moving pendulum and a graph. Also the displacement

What is the difference between the Clone() and Copy() methods of the DataSet class? The Clone() method copies only the structure of a DataSet. The copied structure having all t

What is a Metadata?  Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header

Project Description: We're seeking an IT candidate with experience to help us optimizely,  Skills required: .NET, C# Programming, ASP, eCommerce, SQL

Finding the frequencies - C# Program: Please let me know how to find Frequencies in C#.

Explain Windows authentication Schemes There are four parts of windows authentication I. Integrated Windows authentication II. Basic and basic with SSL authentication

Develop Nesting software with unit costing for gasket manufacturing Project Description: Our current gasket costing software is old and antiquated and has limited use interna

What is garbage collection? Explain the difference among garbage collections in .NET 4.0 and earlier versions. Garbage collection stops memory leaks during execution of pro

What is Multi-threading? Multi-threading process forms the subset of Multi-tasking. Inspite of having to switch between programs this feature switches between different parts o

What is Manifest? Assembly metadata is keeps in Manifest. Manifest contains all the metadata required to do the following things     Version of assembly.     Security ide