1 Reply Latest reply on Mar 5, 2006 12:32 PM by Thomas Diesler

    Catching serverside custom Exceptions on clientside

    dave wanaki Newbie

      hi there,
      I am trying to build a webservice which throws custom exceptions to the client in case something goes wrong, e.g. a wrong password is given etc.
      I would like to catch these Exceptions directly on the client, without getting them out of the AxisFault which is wrapped around them, in the following manner:

      //make the webservice call
      } catch (InvalidPasswordException ivpe) {
      //do something with it
      } catch (UnknownUserException uue) {
      //do something with it

      Is each and every Exception wrapped into an AxisFault or is there a way to get it to work in this way?
      It always comes up this way:

      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
      faultString: This is a test
      <message xsi:type="xsd:string">This is a test

      Thanks for your help.

      with best regards,