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

SOAP fault inheritance

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0RC3
    • None
    • jbossws-native
    • None

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

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

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified