axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim K. (Gmane)" <>
Subject Re: How to get HttpServletRequest from my call
Date Wed, 12 Jan 2005 23:37:48 GMT
Be aware that getRemoteAddr() may not be the address of the client 
sending the request but rather a proxy/caching server in between, load 
balancer, etc. As long as you are OK with it you can get the request 
like this:

MessageContext context = MessageContext.getCurrentContext();

HttpServletRequest req = (HttpServletRequest)

I hope this helps.


Alex Chen wrote:
> I need to inspect the message in the program, e.g. I want to know there 
> the message comes from by
> calling the getRemoteAddr() method of the request.
> Flores, Raul wrote:
>> If you only want to inspect the messages then use a monitor tool.
>> tcpTrace is excellent for this (thank you simon and matt)
>> Raul
>> -----Original Message-----
>> From: Alex Chen [] Sent: Wednesday, 
>> January 12, 2005 3:39 PM
>> To:
>> Subject: How to get HttpServletRequest from my call
>> I am using AXIS as my SOAP server.
>> I use WSDL2Java to generate the code stubs and only need to write the
>> * part..
>> Since everything else is handled by the AXIS servlet,  I have no handle
>> of the HTTP request and reply message.  I would like to inspect that in
>> my code.  How do I get such information?
>> Any help is appreciated.

View raw message