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
ty("REMOTE_ADDR");
>>> System.out.println("remoteAddress - " + remoteAddress);
>>> }
>>> }
>>> ---
>>>
>>> msgCtx is coming as null.
>>>
>>>
>>>
>>> Regards,
>>
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
>>
>
>
>
> 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
>
(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
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/
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) {
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
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