You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by David Logan <da...@veritas.com> on 2003/01/14 22:31:57 UTC

Axis fault codes

Let me rephrase the question. Is anybody out their using fault codes? If so,
how are you throwing the exception/axis fault on the server?

-----Original Message-----
From: David Logan 
Sent: Tuesday, January 14, 2003 1:51 PM
To: 'axis-user@xml.apache.org'
Subject: RE: AxisFaults


Actually, the
FaultCode={http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

-----Original Message-----
From: David Logan [mailto:david.logan@veritas.com]
Sent: Tuesday, January 14, 2003 1:35 PM
To: 'axis-user@xml.apache.org'
Subject: AxisFaults


What is the best way to create/throw axis faults from the service?

I am having trouble getting the fault code from the exception when caught on
the client. I get the message but the FaultCode is = "";


----------------------------------------------------------------------------
-----------------------------------------------
public class TitanServicesException extends AxisFault {

  public TitanServicesException() {

  }

  public TitanServicesException(String message, String faultCode) {
    super(new QName(faultCode), message, faultCode, null);
  }
}