Hi Nick,
here is how I do it.
// get Axis MessageContext
MessageContext msgCtx = MessageContext.getCurrentContext();
// get Servlet request object
HttpServletRequest httpReq =
(HttpServletRequest)
msgCtx.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
// get address of remote caller
String remoteAddress = httpReq.getRemoteAddr();
Alex
-----Original Message-----
From: Nicolas Dinh (VP Academic) [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: Getting the IP address from a SOAP request
Hi,
I'm trying to write an AXIS handler that will log all the IPs of all the
SOAP requests.
I've been looking for a method in MessageContext that will be allow me to
extract the originating IP of the message but I can't seem to figure it out.
Does anyone know a way to do this? I'm sure that the answer to this question
is simple.... I just don't see it.
Nick
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com