This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access HTTP Response Headers with Axis Handlers  RSS feed

 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Kamal Wickramanayake
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!