6 Replies Latest reply on Nov 6, 2007 3:32 AM by ropalka

    Using custom exception inheritance

    dannox02

      I have a web service that I have defined to throw a custom exception, which works fine. However now I'd like to go a step further and define new exceptions that derive from that exception. For example:

      My parent exception is ParentException, and it has two derived exceptions, ChildExceptionA and ChildExceptionB.

      I'd like to be able to define my web service interface to throw ParentException, and be able to catch a ParentException on the client even if a ChildException was really thrown on the server (i.e. be able to catch child exceptions without having to explicitly declare them in the throws clause of the web method.

      I found an article on how this can be done by modifying the WSDL here: http://www-128.ibm.com/developerworks/xml/library/ws-tip-jaxrpc.html.

      Is there a way to do this type of thing using wscompile (starting from the SEI)?