File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting custom response in Axis2

 
Charu Ak
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My axis2 web services throws an AxisFault for authentication failure. The response returned is HTTP 500 - Internal Server error. I have the task to return fault but change the status on response to 200.

I have tried several things but nothing helped:
1. Subclassed AxisServlet and override doPost and set the status on response to 200
2. Override handleFault and set the response to 200.
3. Set the property Constants.HTTP_RESPONSE_STATE on messageContext to 200

Any help is appreciated. This issue is haunting me.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic