Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 57966 invoked from network); 19 Mar 2007 12:49:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 12:49:24 -0000 Received: (qmail 89523 invoked by uid 500); 19 Mar 2007 12:49:17 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 89507 invoked by uid 500); 19 Mar 2007 12:49:17 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 89487 invoked by uid 99); 19 Mar 2007 12:49:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 05:49:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [213.253.200.123] (HELO ns.qualysoft.hu) (213.253.200.123) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 05:49:06 -0700 Received: from localhost (localhost [127.0.0.1]) by ns.qualysoft.hu (ns.qualysoft.hu) with ESMTP id C89FE1793B for ; Mon, 19 Mar 2007 13:48:43 +0100 (CET) X-Virus-Scanned: PERIMETER-GW at qualysoft.hu Received: from ns.qualysoft.hu ([127.0.0.1]) by localhost (michael.qualysoft.hu [127.0.0.1]) (amavisd-new, port 30001) with ESMTP id mmdM2gfgHvjJ for ; Mon, 19 Mar 2007 13:48:43 +0100 (CET) Received: from qualysoft.hu (bpmail01.qualysoft.hu [10.1.1.11]) by ns.qualysoft.hu (ns.qualysoft.hu) with ESMTP id A323C178A6 for ; Mon, 19 Mar 2007 13:48:43 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Sessions with Axis2 Date: Mon, 19 Mar 2007 13:48:42 +0100 Message-ID: <9ED8B82FCCA7E44C9DB687E6F2467CE0294465@bpmail01.qualysoft.hu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sessions with Axis2 thread-index: AcdnAuG77oTP0WQmRziDH0mC/Q5aTgAAxSvAAMeFmyA= From: "SCHEDENIG Marian" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Stadelmann Josef [mailto:josef.stadelmann@winterthur.ch]=20 > Sent: Donnerstag, 15. M=E4rz 2007 14:39 > To: axis-user@ws.apache.org > Subject: AW: Sessions with Axis2 >=20 > That happens mainly in a time-out-condition. >=20 > I wonder why you do not see the SOAP fault such as "invalid=20 > Service Group ID" > text returned from the server in the sopa message. I have a feeling that my server and/or client are not aware there should = be sessions in the first place. > But further to that there are some problems with scope=3Dsoapsession >=20 > Look at my JIRA-1991 to get more insigth, even if it is not=20 > the final solution better then nothing. I updated the timeout to 30000, but nothing has changed. > maybe you should (if not done so) implement init() and=20 > destroy() to your service > and have a logger defined at the server side to logg all=20 > calles when they arrive.=20 > Then look into the tomcat stdout-nnnnnnn.log and see what=20 > your server does.=20 I have those already. This is what I get (I'm putting spaces between the = threads/calls to make it a bit clearer): 2007-03-19 13:30:48,175 [http-8090-Processor24] DEBUG = axissessiontest.server.AxisSessionTestService - Service initialised. 2007-03-19 13:30:48,191 [http-8090-Processor24] DEBUG = axissessiontest.server.AxisSessionTestService - Service group context = ID: urn:uuid:46D8B81A2EB81601091174307448176 2007-03-19 13:30:48,191 [http-8090-Processor24] DEBUG = axissessiontest.server.AxisSessionTestService - Logged in: tex 2007-03-19 13:30:48,207 [http-8090-Processor24] DEBUG = axissessiontest.server.AxisSessionTestService - Initialised count. 2007-03-19 13:30:48,285 [http-8090-Processor25] DEBUG = axissessiontest.server.AxisSessionTestService - Service initialised. 2007-03-19 13:30:48,285 [http-8090-Processor25] DEBUG = axissessiontest.server.AxisSessionTestService - Service group context = ID: urn:uuid:46D8B81A2EB81601091174307448288 2007-03-19 13:30:48,285 [http-8090-Processor25] DEBUG = axissessiontest.server.AxisSessionTestService - Must login first. 2007-03-19 13:30:48,316 [http-8090-Processor23] DEBUG = axissessiontest.server.AxisSessionTestService - Service initialised. 2007-03-19 13:30:48,316 [http-8090-Processor23] DEBUG = axissessiontest.server.AxisSessionTestService - Service group context = ID: urn:uuid:46D8B81A2EB81601091174307448321 2007-03-19 13:30:48,316 [http-8090-Processor23] DEBUG = axissessiontest.server.AxisSessionTestService - Must login first. "Service initialised" is logged in the init() method. The destroy() = method would log "Service destroyed.", so clearly that never gets = called. The first thing I do when one of my service methods is called is = to log the group context ID (I'm not entirely sure, but it seems to me = that this should be the session ID?), which is different for every call. = "Logged in" and "Initialised count" are the correct output for a call to = the login() method. The subsequent calls to count() would return an = increasing number if login() had been called in the same session, but as = the session is not recognised, they log "Must login first." instead. Here's my client initialisation code: endpoint =3D new = EndpointReference("http://localhost:8090/axis2_new/services/AxisSessionTe= stService"); serviceClient =3D new RPCServiceClient(); Options options =3D serviceClient.getOptions(); options.setTo(endpoint); options.setManageSession(true); And this is what a call to the login service method looks like (count is = similar, except for the parameters): QName opExecute =3D new QName("http://server.axissessiontest/xsd", = "login"); Object[] opExecuteArgs =3D new Object[] {user, password}; Class[] returnTypes =3D new Class[] { Boolean.class }; Object[] response =3D serviceClient.invokeBlocking(opExecute, = opExecuteArgs, returnTypes); Looks to me like I'm doing everything right? Thx, Marian. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org