axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagara.gunathu...@gmail.com>
Subject Re: IP of WS client in Server side code
Date Fri, 20 Feb 2009 18:52:21 GMT
Hi Appasamy ,
try use following code segment on current MeaasgeContext .

String clientIp = (String)messageContext.getProperty("REMOTE_ADDR");


Thanks ,

On Fri, Feb 20, 2009 at 3:41 AM, RickCromer
<rick.cromer@stratustelecom.com> wrote:
> I get it from Axis v1 using the following code, but I don't know how to do
> it with Axis2
>
> MessageContext msgContext = MessageContext.getCurrentContext();
>
> String clientIp = msgContext.getStrProp(Constants.MC_REMOTE_ADDR);
>
> Regards,
> Rick Cromer
>
> ________________________________
> From: Appasamy Thirugnana [mailto:athirugnana@sapient.com]
> Sent: Thursday, February 19, 2009 3:00 AM
> To: axis-user@ws.apache.org
> Subject: IP of WS client in Server side code
>
> How to find the IP of WS client in Server side code?. Can any one please
> help?
>
> Thanks
> Appasamy T
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Mime
View raw message