RE: Identify IP address of the source request

2011-07-05 Thread Matta, Geethamadhurima
Thanks Tony. It worked. I had placed this code in init(). Hence, it was not working. From: Tony HEDOUX [mailto:hedo...@hotmail.com] Sent: 01 July 2011 19:04 To: java-user@axis.apache.org Subject: RE: Identify IP address of the source request Hi, You should try

Re: Identify IP address of the source request

2011-07-01 Thread Deepal jayasinghe
ty("REMOTE_ADDR"); >>> System.out.println("remoteAddress - " + remoteAddress); >>> } >>> } >>> --- >>> >>> msgCtx is coming as null. >>> >>> >>> >>> Regards, >>

Re: Identify IP address of the source request

2011-07-01 Thread Jeff Greif
Regards, >> Geeta Madhurima >> Desk: (212) 723 2505 >> -Original Message- >> From: Deepal Jayasinghe [mailto:deep...@gmail.com] >> Sent: 30 June 2011 20:41 >> To: java-user@axis.apache.org >> Subject: Re: Identify IP address of the source request >>

RE: Identify IP address of the source request

2011-07-01 Thread Afkham Azeez
> > > > Regards, > Geeta Madhurima > Desk: (212) 723 2505 > -Original Message- > From: Deepal Jayasinghe [mailto:deep...@gmail.com] > Sent: 30 June 2011 20:41 > To: java-user@axis.apache.org > Subject: Re: Identify IP address of the source request >

RE: Identify IP address of the source request

2011-07-01 Thread Tony HEDOUX
(String)msgCtx.getProperty(MessageContext.REMOTE_ADDR); } } Tony. From: geethamadhurima.ma...@citi.com To: java-user@axis.apache.org Date: Fri, 1 Jul 2011 17:45:26 +0100 Subject: RE: Identify IP address of the source request Nadir, How to get msgContext obj. I am using: MessageContext

RE: Identify IP address of the source request

2011-07-01 Thread Matta, Geethamadhurima
e.org' Subject: RE: Identify IP address of the source request How about trying something like: (String)msgContext.getProperty(MessageContext.REMOTE_ADDR); Nadir Amra Integrated Web Services for IBM i Operating System Internet: a...@us.ibm.com "Matta, Geethamadhurima " wrote on 06/

RE: Identify IP address of the source request

2011-06-30 Thread Nadir Amra
uot; > To: "'java-user@axis.apache.org'" > Date: 06/30/2011 03:53 PM > Subject: RE: Identify IP address of the source request > > Deepal, > > Following is the code: > --- > public void init(ServiceContext serviceContext) {

RE: Identify IP address of the source request

2011-06-30 Thread Matta, Geethamadhurima
ing as null. Regards, Geeta Madhurima Desk: (212) 723 2505 -Original Message- From: Deepal Jayasinghe [mailto:deep...@gmail.com] Sent: 30 June 2011 20:41 To: java-user@axis.apache.org Subject: Re: Identify IP address of the source request You can get the remote IP address of the client corresp

Re: Identify IP address of the source request

2011-06-30 Thread Deepal Jayasinghe
You can get the remote IP address of the client corresponding to the current message as follows; String remoteAddress = String)msgCtx.getProperty("REMOTE_ADDR"): Deepal On Thu, Jun 30, 2011 at 3:34 PM, Matta, Geethamadhurima wrote: > Hi, > > I am using Axis2 1.5.1. > > We need to authenticate if