On Mon, 2003-11-10 at 17:54, Jorge Lorenzo wrote:
> When you create a SOAPFaultException, you specify four elements (in the
> constructor):
>       SOAPFaultException(QName faultcode, String faultstring, String faultactor,
> Detail faultdetail)
> But Axis only uses the faultstring (and in part because it's appended to the
> exception classname). The rest of parameters, included the faultcode, are
> ommitted by Axis. So I don't think it's very useful the implementation of
> SOAPFaultException. In fact, it's easier to use the JAXRPCException which
> just requires a string parameter.
> 

You should use AxisFaults instead the SOAPFaultExceptions because Axis 
is intended to process onFault() methods of all handlers already
processed in the chain in case of fault. And this would only happen if
an AxisFault was thrown, and not a SOAPFaultException.

Unless you don't need the handlers onFault() methods behavior, of
course.
-- 
-PS

Reply via email to