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
I want to develop a Windows 8.1 Application Project Description: Media Player App Development for Windows 8.1 platform with brilliant UI, flexible controls and easy to use.

Calculate Standard Deviation - C# Program Hello i am unable to find the code for Calculate Standard Deviation in c#. Can anybody please provide me the assignment help?

Describe the services that UDDI provides to Web applications. UDDI gives the following types of services to a Web application: XML Schema for business descriptions - Contain

What is the Append Format for FileUpload Control in ASP.Net? What it specify?

Game development tutorials required Project Description: I need video tutorials like lynda for game development using unity. You must have developed games before and need to

Update present website backend (asp.NET) as well as build Rest API to expose data I will soon build an HTML5 cross-platform mobile app. I previously have a website with a backen

What is a host process? A host process is an implementable program that hosts a workflow. It might be a Windows Forms application, a Web application, or a Web service applicati

Differentiate between managed and unmanaged code? Managed code is the code that is implemented directly by the CLR instead of the operating system. The code compiler first comp

how can i construct er diagram for payroll managment

What are basic methods of Data adapter? The three most commonly used methods of Dataadapter are as follows:- 1)Fill :- It Executes the SelectCommand to fill the DataSet ob