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
Want a asp.net developer with SQL server and c# Project Description: I have a project that needs some changes to it. The project is 95% complete. It is designed on asp.net, p

Explain the concept of constructor? Constructor is a special method of a class, which is called automatically when the instance of a class is formed. It is created with the sam

How does CAS works? There are two key methods of CAS security policy- code groups and permissions. A code group contains assemblies in it in a manner that each .NET assembly is

Explain the DataAdapter.Update() and DataSetAcceptChanges() methods. The DataAdapter.Update() method calls any of the DML statements, like UPDATE, INSERT, or DELETE statements,

What are runtime services? Runtime services having of predefined and user-defined classes that are available to the workflow runtime engine during implementation to customize t

What is V model in testing? The V model map's the type of test to the stage of development in the project. Figure: - V Model 1) Unit Testing: The Starting fro

i am working on an project and my client needs it in 2 days.project is ready but don''t know how to make setup project including local sql database(.mdf) included in setup..

Describe the disconnected architecture of ADO.NET's data access model. ADO.NET maintains a disconnected database access model, which means, the application never remains linked

What are the advantages of Distributed Processing? Benefits of distributed programming are:- a. Security/Encapsulation b. Faster Problem solving c. Distributed databas

CRM and Shaerpoint We are using 365+ CRM in the cloud for QuattroCitta at the moment which we will migrate to our own private cloud in six months (project part 2). Within ShareP