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 Ever Olano <ap...@olano.org> on 2003/06/06 20:19:12 UTC

Best practices for AxisFault handling

Hi, I need some advice as to how to best handle AxisFaults.  I am writing
a client that talks to a payment service.  So, the point where any
exception occurs matters.  Basically, I would like to be able to determine
whether or not the exception occurred before the request was received by
the server or after, in which case, the transaction may have actually been
processed successfully.

Has anyone had to write code for determining this?  Should I look at the
faultCode or should I look at the "cause" exception (which I'm trying to
avoid because it's not available in JDK 1.3)?  Which faultCodes/causes
would be considered critical (i.e. where the request may have been
received and processed by the server)?

Thanks.  I'd appreciate any inputs.
Ever