Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[Apache Web Services Wiki] New: FrontPage/Axis/SessionSupport: msg#00048

apache.webservices.general

Subject: [Apache Web Services Wiki] New: FrontPage/Axis/SessionSupport

Date: 2005-01-11T18:12:12
Editor: ToshiyukiKimura
Wiki: Apache Web Services Wiki
Page: FrontPage/Axis/SessionSupport
URL: http://wiki.apache.org/ws/FrontPage/Axis/SessionSupport

Importing old wiki ...

New Page:

##language:en
'''Q: So does Axis support sessions?'''

A: Yes. We have a session abstraction which allows an extensible set of
underlying implementations - take a look at the class
org.apache.axis.session.Session for details. In particular, we currently
support sessions based on HTTP cookies and also transport-independent sessions
based on SOAP headers. It is up to some handler on the request chain to set up
an appropriate Session implementation and attach it to the {{{ MessageContext
}}} with {{{ MessageContext.setSession() }}} so that anyone who wants to use
session semantics can get at it.

'''Q: Cool, SOAP header-based sessions? How do I make that work?'''

A: There is a Handler class called "org.apache.axis.handlers. {{{
SimpleSessionHandler }}}" which implements this functionality. You need to
include this handler in the request and response flows of both your client and
your server. Take a look at our session test ({{{
test.session.TestSimpleSession }}}) for an example. Regarding use in clients,
look at [http://wiki.apache.org/old/AxisProjectPages_2fAxisClientConfiguration
AxisClientConfiguration].

'''Q: What else can I do with sessions?'''

A: Any time after the session context has been established, calling
getSession() on the current messageContext will obtain you a reference to a
Session object. You may use this object like a Hashtable to store arbitrary
data associated with this Session. For instance, on one request you might
extract the caller's name and address from a database (an expensive operation),
and then cache them in the Session object for fast access on subsequent
invocations from the same caller. This functionality can be used either by
custom Handlers or by your backend service object itself.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation