Hello Mati,
There is no need to declare runtime exceptions. You can catch them
without declaring them.
If you want your custom exception to be defined in the WSDL so that a
class for it is generated on the client side, you'll have to use a
checked exception (there is no mapping for runtime exceptions).
Regards,
Dies
Mati David wrote:
I have my own defined RuntimeException (MyRuntimeException that extends
java.lang.RuntimeException). When I'm trying to run JAVA2WSDL on it I
get the following message:
- The class MyRuntimeException extends non-bean class
java.lang.RuntimeException. An xml schema anyType will be used to
define MyRuntimeException in the wsdl file.
This seems to prevent my soap client to catch this type of exception
explicitly.
Is there a way to solve it? Is there a way to declare RuntimeException
in Axis?
Thanks for any help,
Mati.