aspose file tools*
The moose likes Web Services and the fly likes Axis2 - request XML at the time of fault response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 - request XML at the time of fault response" Watch "Axis2 - request XML at the time of fault response" New topic
Author

Axis2 - request XML at the time of fault response

Pank Pawar
Greenhorn

Joined: Dec 30, 2010
Posts: 2

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

Joined: Aug 26, 2008
Posts: 263
Get hold of MessageContext it contains request and response both.


SCJP 1.5(97%) My Blog
Pank Pawar
Greenhorn

Joined: Dec 30, 2010
Posts: 2
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

Joined: Aug 26, 2008
Posts: 263


If your phase go inside the above place holder I hope it will be called only if its fault response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 - request XML at the time of fault response
 
Similar Threads
Axis2 SAAJ API conflict with Java6 SAAJ - UnknownHostException on call()
how to get full stack trace?
altering the xml output for axis2 soap response
AXIS2 : Inclusion of Headers into SOAP fault message and changing the namespaces
Basic SOAP fault question