Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 - request XML at the time of fault response

 
Pank Pawar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I using using Axis2 API. I want to get request XML at the time of fault response. Is there any way to do it. Please let me know.

Thanks,
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get hold of MessageContext it contains request and response both.
 
Pank Pawar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks .. but I am not exactly getting what to do next.

What I did is I have written a class which extends AbstractHandler and added a phase with handler in axis2.xml ( 1 pahse in InFlow and 1 in OutFlow)
so that the invoke method in my class will be get called at every req and every response.
Now I want to access the request xml only for fault response.
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


If your phase go inside the above place holder I hope it will be called only if its fault response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic