Can anyone answer the following?

We have a ServiceResponse class defined which all of our web services
return.  If a web service is successful and there is something returned to
the client, we put it in the result property of ServiceResponse (result is
defined as an Object.)  

If an error occurred, we put the error in the error property of
ServiceResponse (also an Object.)   We'd like to catch any Exception and put
them in the error property.  I tried that and I get: java.io.IOException: No
serializer found for class java.lang.Exception.

Can I return the Exception like this?  If I can set the Exception in the
error property, how do I define Exception in the wsdd?  

Or do I need to do something different like create an AxisFault and set it
in the error property instead?  

Thanks.

Reply via email to