Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-251

SOAP fault inheritance

XMLWordPrintable

      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)?

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: