This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis2 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 problem" Watch "Axis2 problem" New topic
Author

Axis2 problem

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 83

I have generated a client for a web service with Axis 2.

The problem I have is that when the web service throws a Soap:Fault message I don't seem to have any way to get to the actual error it returns.
Axis2 throws a RemoteException, but I can't see a way to drill into that to get the text of the error (which I can see because I'm logging all i/o).

How do I get the faultString?

John.
John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 83
Anyone? Any ideas?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
I assume you're running this in a servlet container of some kind - isn't there a full stack trace in its log files?


Ping & DNS - my free Android networking tools app
John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 83
I'm not sure what you're suggesting here.

My code calls the client. The client throws an exception. I catch the exception, but it does not include the useful error text I want to handle.
How would a logged stack dump help with that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 problem
 
Similar Threads
Eclipse / Axis2 Webservice woes
Problems with security policies for Axis2 in Tomcat
reading soap-envelop messages
New to WebService
Deploying the Eclipse generated web service client on Tomcat