Tuesday, December 27, 2005

Axis and caller IP address


MessageContext context = MessageContext.getCurrentContext();

if(context.containsProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)) {
HttpServletRequest req = (HttpServletRequest)
context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

if (req != null)
address = req.getRemoteAddr();
}
Post a Comment