aspose file tools
The moose likes Web Services and the fly likes Axis - no message in custom exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Axis - no message in custom exception" Watch "Axis - no message in custom exception" New topic
Author

Axis - no message in custom exception

Oliver Nautsch
Greenhorn

Joined: Sep 19, 2003
Posts: 4
Hello,

After searching 2 hours I want to ask you here...

I don't get the message (getMessage) from a exception (subclass of RemoteException) on the client side. The serializer and deserializer for the exception is on the server and the client side a BeanSerializer/BeanDeserializer. The exception is registered via Call.addFault(QName qname, java.lang.Class cls, QName xmlType, boolean isComplex) on the client.

I get the following message from the server (tcp/ip monitor):



I'm also getting the right exception on the client side - no AxisFault. But the message is not in the Exception.

May be the BeanDeserializer is the problem because there is no setMessage in the Exception only a constructor with a parameter "String message".

So, how can I get the Message in the Exception from Axis?

Regards
Oliver
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis - no message in custom exception
 
Similar Threads
Server.userException: Exception while executing Client
web service exception handling..
Multiple faults in WSDL???
Axis Fault: no such operation
WAS v6.1 + WS-Security