|
|
Choosing A Webhost: |
[Apache Web Services Wiki] New: FrontPage/Axis/SessionSupport: msg#00048apache.webservices.general
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> |
|---|---|---|
| Previous by Date: | [Apache Web Services Wiki] New: FrontPage/Axis/DeployedServiceTocall, general |
|---|---|
| Next by Date: | [Apache Web Services Wiki] Updated: FrontPage/Axis/SessionSupport, general |
| Previous by Thread: | [Apache Web Services Wiki] New: FrontPage/Axis/DeployedServiceTocall, general |
| Next by Thread: | [Apache Web Services Wiki] Updated: FrontPage/Axis/SessionSupport, general |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |