axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Reynolds" <...@RonReynolds.com>
Subject Re: i want know client ip with axis
Date Tue, 25 Oct 2005 18:08:00 GMT
what is it, then?  what server environment is your service running in?  ultimately the client
IP is on the incoming
socket - your specific server-side environment dictates where (and if) that client IP gets
exposed internally...
> thanx for your help Paul
>
> but....i have not a servlet in the server...my web-service is not a servlet
>
> then can i use your code?? :S
>
> In data Tue, 25 Oct 2005 17:30:23 +0200, <Paul.Smith3@barclayscapital.com>
> ha scritto:
>
>> You can get it from the ServletRequest which is stored as property in
>> the Axis MessageContext.
>> Try something along the lines of the code below but be warned I haven't
>> compiled or tested it.
>>
>> MessageContext msgContext = MessageContext.getCurrentContext();
>> HttpServletRequest request = (HttpServletRequest)
>> msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
>> String remoteAddr = request.getRemoteAddr();
>>
>> Paul Smith
>>
>>
>> -----Original Message-----
>> From: Carmine Gargiulo [mailto:karmyne@email.it]
>> Sent: 25 October 2005 16:21
>> To: axis-user@ws.apache.org
>> Subject: i want know client ip with axis
>>
>>
>> Is there some class or method for that??
>>
>> i want know ip that uses my WS
>>
>>
>> if yes....show me the code please
>>
>> thanx in advance
>>
>>
>>
>
>
>
> --
> Carmine Gargiulo
>
> Carmine Gargiulo usa il rivoluzionario client e-mail di Opera:
> http://www.opera.com/m2/
>
>
>  --
>  Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
>  Sponsor:
>  Alimentazione biologica, fanghi di Guam, aloe vera,
> * prodotti di bellezza Erbolario. Dove?
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1305&d=25-10
>



Mime
View raw message