Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Do webservices have state ?
.NET INTERVIEW QUESTIONS - Do webservices have state ? (How can we maintain State in Webservices ?)
✍: Guest
Webservices as such do not have any mechanism by which they can maintain state. Webservices can access ASP.NET intrinsic objects like Session, application and so on if they inherit from “WebService” base class.
<%@ Webservice class="TestWebServicesClass" %>
Imports System.Web.Services
Public class TestWebServicesClass
Inherits WebService
<WebMethod> Public Sub SetSession(value As String)
session("Val") = Value
End Sub
end class
In this example code we set a session object called as “val”. TestWebservicesClass is inheriting from WebService to access the session and application objects.
2009-10-20, 4743👍, 0💬
Popular Posts:
How To Create an Add-to-NewsGator Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News...
What will be printed as the result of the operation below: #define swap(a,b) a=a+b;b=a-b;a=a-b; void...
1. What is normalization. 2. Difference between procedure and functions. 3. Oracle 9i Vs 10g. 4. how...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...
How can I execute a PHP script using command line? Just run the PHP CLI (Command Line Interface) pro...