You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Cory Wilkerson <cw...@travelnow.com> on 2003/01/27 15:44:48 UTC
RE: Getting the IP Address of a Web Service Client
public void someService() {
MessageContext mc = MessageContext.getCurrentContext();
String ip = (String)mc.getProperty("remoteaddr");
}
-----Original Message-----
From: Nicolas Dinh [mailto:dubstar27@hotmail.com]
Sent: Saturday, January 25, 2003 9:48 AM
To: axis-user@xml.apache.org
Subject: Getting the IP Address of a Web Service Client
Hi,
Is there a way to get the IP address of the originating RPC SOAP request at the level of the web service rather than at the level of the web service itself?
What I do now is have a handler extract the IP address of the SOAP request. However, once this is done, I do not know how to pass this information to associate that particular SOAP method call at the web service level to an IP address.
Any tips would be great!
Regards
Nicolas Dinh
_____
The new MSN 8: <http://g.msn.com/8HMYENCA/2737> smart spam protection and 2 months FREE*