• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Axis2 - request XML at the time of fault response

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic