Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 19786 invoked from network); 31 May 2007 19:32:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 May 2007 19:32:32 -0000 Received: (qmail 72763 invoked by uid 500); 31 May 2007 19:32:28 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72739 invoked by uid 500); 31 May 2007 19:32:28 -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 72728 invoked by uid 99); 31 May 2007 19:32:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 12:32:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of rupadhyayula@responsys.com designates 206.173.245.221 as permitted sender) Received: from [206.173.245.221] (HELO mail.responsys.com) (206.173.245.221) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 12:32:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Retrieving caller's port number from current message context Date: Thu, 31 May 2007 12:32:03 -0700 Message-ID: In-Reply-To: <87AC5F88F03E6249AEA68D40BD3E00BE0FFAE68C@zcarhxm2.corp.nortel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Retrieving caller's port number from current message context Thread-Index: AcejtJFDJ2N2k3ZNShGmAkbk5Nf6yQAATugAAAA8FmAAAOHQ4A== References: <87AC5F88F03E6249AEA68D40BD3E00BE0FFAE68C@zcarhxm2.corp.nortel.com> From: "Raghu Upadhyayula" To: , X-Virus-Checked: Checked by ClamAV on apache.org Instead of parsing the port number from the getRequestURL, the HttpServletRequest method has a getServerPort() method which returns the port number. Thanks Raghu -----Original Message----- From: Gul Onural [mailto:onural@nortel.com]=20 Sent: Thursday, May 31, 2007 12:13 PM To: dims@apache.org Cc: axis-user@ws.apache.org Subject: RE: Retrieving caller's port number from current message context HttpServletRequest's getRequestURL method returns client's URL which has protocol, server name, port number, and server path. You can use that method to add a PORT property to Axis2 current message context. Also another property SESSION_ID can be put into the Axis2's current message context by calling HttpServletRequest's getSession method which returns HttpSession and it has a method called getId which returns string containing the unique identifier assigned to this session. I have created an enhancement request for this (https://issues.apache.org/jira/browse/AXIS2-2746). Gul -----Original Message----- From: Davanum Srinivas [mailto:davanum@gmail.com] Sent: Thursday, May 31, 2007 2:50 PM To: Onural, Gul (CAR:QT00) Cc: axis-user@ws.apache.org Subject: Re: Retrieving caller's port number from current message context Gul, we call the HttpServletRequest's getRemoteAddr and stick it into REMOTE_ADDRESS. if you can log a jira with some code to get the port from HttpServletRequest's. we'd certainly entertain a enhancement request. thanks, dims On 5/31/07, Gul Onural wrote: > > A standard HTTP request has the port number and IPAddress. Would it be > possible for Axis2 to retrieve the port number and stick it into the=20 > message context ? > > Gul > > -----Original Message----- > From: Davanum Srinivas [mailto:davanum@gmail.com] > Sent: Thursday, May 31, 2007 2:18 PM > To: axis-user@ws.apache.org > Subject: Re: Retrieving caller's port number from current message=20 > context > > Nope. AFAIK. Is it available in a typical servlet? > > thanks, > dims > > On 5/31/07, Gul Onural wrote: > > > > > > I know how to retrieve caller's IP Address from the message context=20 > > in > > > Axis2 (via property keyed by MessageContext.REMOTE_ADDR). > > Is there a similar way of retrieving caller's port number from the=20 > > current message context ? > > > > > > > > > -- > Davanum Srinivas :: http://davanum.wordpress.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Davanum Srinivas :: http://davanum.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org