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
Question: (a) One problem encountered when designing web applications is that HTTP is a "stateless" protocol. Explain two general approaches to solve the statelessness problem

What is fill factor? The 'fill factor' option describes how full SQL Server will make each index page. When there is no free space to insert a new row on the index page, the SQ

I need Programmer to extracting data Project Description: Programmer role A skilled programmer is required to build a standalone module to extract, parse and store in data

What are code contracts? Code contracts help you to state the code assumptions and statements stating the behavior of your code in a language-neutral way. The contracts are con

want to generate random numbers between 1-15 and no one should repeat until all numbers have come once....

In this assignment you will create a Windows application that mimic the ILDASM application. Your application should have at least the following features: 1. A multi-form applica

Web-App Developer for Startup Project Description: I am seeking someone who is good at building dynamic sites that will run on both desktops and tablets. The core of the w

What are the components of WF 4.0? WF having of various components that work together to make desired workflow. The components of WF are given as follows: Workflows and a

What is DMAIC and DMADV? The Six Sigma has two key methodologies viz. DMAIC and DMADV. The DMAIC is used to improve an existing business process. While DMADV is used to create

First let me start by saying that I have been writing code for almost 25 years. So I am only looking for someone to assist advance a project I am working on. Someone that is unders