You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by "Han, Zhi (Zhi)" <zh...@lucent.com> on 2006/06/09 13:24:26 UTC

RE: How to get client IP after client invoke method execute("ABC. def" )

Anybody can give me an answer?

-----Original Message-----
From: Han, Zhi (Zhi) [mailto:zhihan@lucent.com]
Sent: 2006年6月7日 21:15
To: 'xmlrpc-user@ws.apache.org'
Subject: How to get client IP after client invoke method
execute("ABC.def" )


I want to get the client IP after a server method is invoked. which API
support this function, thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: How to get client IP after client invoke method execute("ABC. def" )

Posted by Georg Sauer-Limbach <gs...@gslweb.de>.
The servlet API supports this.

On your XML-RPC server, you are most likely deriving
from XmlRpcServlet (see
http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/webserver/XmlRpcServlet.html
)
which has a parameter pRequest which is of type
javax.servlet.http.HttpServletRequest, which has a
method getRemoteAddr(), which returns the client's IP.

Regards
Georg

Han, Zhi (Zhi) wrote:
> Anybody can give me an answer?
> 
> -----Original Message-----
> From: Han, Zhi (Zhi) [mailto:zhihan@lucent.com]
> Sent: 2006年6月7日 21:15
> To: 'xmlrpc-user@ws.apache.org'
> Subject: How to get client IP after client invoke method
> execute("ABC.def" )
> 
> 
> I want to get the client IP after a server method is invoked. which API
> support this function, thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: xmlrpc-user-help@ws.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: xmlrpc-user-help@ws.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: How to get client IP after client invoke method execute("ABC. def" )

Posted by Jochen Wiedmann <jo...@gmail.com>.
Han, Zhi (Zhi) wrote:

> I want to get the client IP after a server method is invoked. which API
> support this function, thanks.

Sorry for replying late. Your question has demonstrated me, that so far it
was not possible to initialize the actual request handlers with request
specific objects. I have added the required sources and created an FAQ entry
with your question. Please wait for the next nightly builds and fetch them from

    http://people.apache.org/dist/ws/xmlrpc/nightly/


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org