Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 problem

 
John Farrel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone? Any ideas?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you're running this in a servlet container of some kind - isn't there a full stack trace in its log files?
 
John Farrel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic