On Wed, 2002-10-23 at 15:09, Matthias Brunner wrote:
> On Tuesday 22 October 2002 22:03, Timofey Korolyov wrote:
> > On Mon, 2002-10-21 at 22:26, Matthias Brunner wrote:
> > > First of all, set scope to "session" in your deployment
> > > descriptor (WSDD file).
> >
> > I've done that, but still nothing happens.
> 
> You have to call Call.setMaintainSession(true) on the client side.

done!


> Sorry, it is only in the source distribution: test.session.*
> 
> See also:
> http://xml.apache.org/axis/faq.html#faq9

done 8-)

here is my code sample. is that ok?
Sorry for maybe simple question, but there is no code examples (expect
TestSession) in www (i've searched everything with google.com).

public Element getUpdatesList(String branch, String version, Element
pluginsList) {
                
                
                Session session = MessageContext.getCurrentContext().getSession();
                
                Integer count = (Integer)session.get("counter");
                if (count == null) {
                        count = new Integer(0);
                }
                count = new Integer(count.intValue() + 1);
                session.set("counter", count);
                
                return null;
                        
        }


Service sends me back:

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Connection: close
Date: Wed, 23 Oct 2002 11:37:50 GMT
Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
Set-Cookie: JSESSIONID=34367494FFF447AD50EA2C470E64C6F8;Path=/axis

<?xml version="1.0" encoding="UTF-8"?>
....


Nothing here about counter.
Where can my mistake possibly be?


-- 
Timofey Korolyov <[EMAIL PROTECTED]>
Linux-Online.Ru

Reply via email to