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
What is an identifier? Identifiers are northing but names given to various entities uniquely identified in a program. The name of identifiers must vary in spelling or casing. F

why datagrid are used in dot net programming langugage

How is a property designated as read-only?  In VB.NET: Public Read-Only Property Property Name  As Return Type Get ?Your Property execution goes in here End Get End Property.

What is Post Cache substitution? The Post cache substitution is used when we want to cache the complete page but also require some of the dynamic region inside that cached page

How to decide on the design consideration to take a Datagrid, datalist or repeater? So many make a blind choice of choosing datagrid directly, but that is not the right way.

Which command-line tool generates code and mapping for the LINQ to SQL component of .NET Framework? The SqlMetal.exe command-line tool generates code and map the LINQ to SQL co


We have a VB.NET application to organize the edition and creation of dynamic PDF forms (fishing trip logsheet). The fishing vessel parameters are entered once for good in this VB.N

Custom Mql4 Code/Fxdreema block Project Description: I need the subsequent code written in mql4 and integrated as custom block(s) in fxdreema: for each trade: check pro

How object pooling in .NET is done COM+ reduces overhead by creating object from scratch. Thus  in COM+ when object is activated its activated from pool and when its deactivate