I want to log HTTP Headers using Apache Axis 1.1 (may upgrade Axis2 eventually).
I am able to fetch the HttpServletRequest from the handler and log the request HTTP headers using that, but I cannot figure out how to access the response HTTP headers since HttpServletResponse does not seem to provide access to that information. Is there a way to get at this information with Axis?
My technique for getting the request HTTP headers is like this by the way:
Is there way to do something similar with the response?
Also is there a way to have my handler run last in Axis 1.1?
I don't think accessing outgoing http headers is feasible. It's because they are added by the application server to the final output. Using an Axis2 handler you can however access the entire SOAP response (including SOAP headers). If you want to access outgoing http headers, look at how you can do it in your application server. You may also use a proxy server for the same purpose.
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
how do I do my own kindle-like thing - without amazon