Don't know if this is standard or even works in all cases (like when using proxy, or
whatnot,) but I do:
MessageContext ctxt = MessageContext.getCurrentContext();
logger.debug("ctxt: " + ctxt );
logger.debug( "transport:" + ctxt.getTransportName());
javax.servlet.ServletRequest request = (javax.servlet.ServletRequest)
ctxt.getProperty( "transport.http.servletRequest" );
logger.debug( "caller: " + request.getRemoteAddr() +
"[" + request.getRemoteHost() + "]" );
This is from servlet stuff, I think.
Javier Gonzalez wrote:
Hi,
I have a document webservice made with axis, and I have this problem:
One of the clients of said service isn't very "reliable", they are
supposed to provide a certain ID inside the soap message but they
can't really counted on to provide it. I would like to have the IP
address of the client as a backup measure if/when they do not provide
the required ID.
Is that posible using axis?