Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 72436 invoked from network); 23 Jan 2006 03:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 03:33:43 -0000 Received: (qmail 29199 invoked by uid 500); 23 Jan 2006 03:33:42 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 28585 invoked by uid 500); 23 Jan 2006 03:33:41 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 28574 invoked by uid 99); 23 Jan 2006 03:33:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 19:33:41 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DATE_IN_PAST_24_48 X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 22 Jan 2006 19:33:40 -0800 Received: (qmail 55462 invoked from network); 23 Jan 2006 03:33:17 -0000 Received: from unknown (HELO Deepal) (unknown) by unknown with SMTP; 23 Jan 2006 03:33:17 -0000 X-pair-Authenticated: 222.165.177.26 Message-ID: <000001c61fcd$b6f39010$c201a8c0@Deepal> From: "Deepal Jayasinghe" To: References: <43CFB905.2020304@opensource.lk> <43D0576D.3030003@opensource.lk> <1137802962.8114.15.camel@localhost.localdomain> <1137807586.8114.19.camel@localhost.localdomain> Subject: Re: [Axis2] Transport independent Session Mgt [Proposal] Date: Sat, 21 Jan 2006 21:25:30 +0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Srinath and all; Well , in the very first request you do not need to send anything , since server is the one who know about the session and who creates sessions , as an example client does not know in which session scope the service has deployed. Say that service is deploy in request scope and user send some reference parameters in the second request , in that case user does not get any session stuff. Back to the topic :) After the second request in axis2 if the service is deploy in soap session or application session then server response with serviceGroupID (I really like to rename that to sessionID) as reference parameters in the wsa:replyTo headers, so its up to the client to send that back to server in the next request if he think that he want to manage session. If server wants to manage sessions and if user does not send the reference parameters then server might throw exceptions. I am very happy with our current client approach , there user can say options.setManageSession(true); , then if server send any reference parameters then those will be stored in the ServiceContext and , when user send next request those reference parameters will be send automatically. And if some one wants to manage sessions across several serviceClient he can also do that (use case : in the stub case , for each stub it has its own ServiceClient in it , so if some one want to manage session across several stub , if they are in same service group) , the way is after you creating service client you can set its targetEPR , and that will set that as ServiceConetxt target EPR , and if you set manage session to true then when you send any request to server all those reference parameters will be send , and when its get the response back target EPR will be updated to new . Thanks, Deepal ................................................................ ~Future is Open~ ----- Original Message ----- From: "Srinath Perera" To: Sent: Saturday, January 21, 2006 8:29 AM Subject: Re: [Axis2] Transport independent Session Mgt [Proposal] Sorry for interrupting, Let me ask a Q Let me take the inout MEP When a server reply to a request reference property approach works! because server uses reply to EPR. How can we make it work with the request. How the client know the To EPR, is there any association to WSDL. How first message on a interaction get a To EPR? Can you explain how in a In-Out MEP, Service Provider (Server) keep a session across number of In-Out Invocations? Thanks Srinath On 1/20/06, Sanjiva Weerawarana wrote: > On Fri, 2006-01-20 at 20:10 -0500, Rajith Attapattu wrote: > > > > > > So if a service is deployed in SOAP session scope we do that with > > the understanding that any client that uses this service supports > > WS-Addressing. > > > > If above assumption is wrong, How about the client that don' > > support WS-Addressing ?? is this scenario something to be concerned or > > not?? > > No- WS-Addressing is a core part of the foundation of Web services. If > the client doesn't support WS-Addressing then its life is very boring > because it can't participate in pretty much anything except message > exchanges over a bi-directional protocol such as HTTP. > > Sanjiva. > > > > -- ============================ Srinath Perera: http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani