Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 47553 invoked from network); 23 Apr 2004 21:56:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Apr 2004 21:56:50 -0000 Received: (qmail 15345 invoked by uid 500); 23 Apr 2004 21:56:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 15335 invoked by uid 500); 23 Apr 2004 21:56:26 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 15324 invoked from network); 23 Apr 2004 21:56:26 -0000 Received: from unknown (HELO dorado.ogse.lan) (209.253.173.13) by daedalus.apache.org with SMTP; 23 Apr 2004 21:56:26 -0000 Received: from [172.17.25.134] (rss.ogse.lan [172.17.25.134]) by dorado.ogse.lan (8.11.1 (Revision 1.5) /8.11.1) with ESMTP id i3NLuMc28196 for ; Fri, 23 Apr 2004 16:56:23 -0500 (EST) Subject: RE: Sessions across several services with Client From: Ryan Stutsman To: axis-user@ws.apache.org In-Reply-To: <5C7752CCB00C3A47A70D5C4204A360B202F335F5@caq010avexu1.global.avaya.com> References: <5C7752CCB00C3A47A70D5C4204A360B202F335F5@caq010avexu1.global.avaya.com> Content-Type: text/plain Message-Id: <1082757479.4962.13.camel@rss.ogse.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 23 Apr 2004 16:58:00 -0500 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N What you describe is exactly what I have done; however, what I'm asking is... How do I then, take that sessionID in response from the login method of one service and put it into the request header of say getPerson from the person service. I can't for the life of me figure out how to 1) get the sessionID from the header on the Axis client and 2) get the sessionID back into the Axis client's request header. I did this in PHP with a nuSOAP client easily because it has a method for getting and setting header tags. On Fri, 2004-04-23 at 16:52, Yakulis, Ross (Ross) wrote: > I am not sure I fully follow your question: > "but how do I do this with the Axis client". > Specifically how are you differentiating "axis client" > from other clients? > > I have done something similar use SOAP headers to pass a session from > on axis web service to another. The first web service logs > on and creates the session token that is returned in the > SOAPHeader, then that token is propagated to other services. I did > not use the java sessions and did my own session control on the server side. > > Ross > > -----Original Message----- > From: Ryan Stutsman [mailto:rstutsman@ogse.com] > Sent: Friday, April 23, 2004 2:48 PM > To: axis-user@ws.apache.org > Subject: Sessions across several services with Client > > > Hello, > > I have an Axis app server which has several web services. They all > share a common session (using the SimpleSessionHandler with the > sessionID in the SOAP headers right now). e.g. You start a session on > the user service it'll follow you to the person service, etc, etc. > > Now, I've gotten a few clients to work with this fine, but how do I do > this with the Axis client? > > I can't seem to figure out how to SET the sessionID in the request > header. I want to override the automatic sessionID with the ID that I > have from the other service. > > Since there's no MessageContext and locator.getEngine() returns null I'm > not sure how to attack it. > > Thanks.