This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 - request XML at the time of fault response  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!