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 Ao...@meridianp2p.com on 2004/07/26 12:59:30 UTC
SOAPFault converted to exceptin
Hi,
I have a client that in certain conditions may receive a SOAPFault from
the server. The service spec that I'm working to says that the fault
string will be one of four values and the client needs to be able to
determine which of those values caused the error. According the Axis
installation guide Axis will convert the fault to a Java exception. I can
use getMessage() on the exception to get the Fault string but what's the
best way of getting the fault code (to ensure it's a Server rather than a
Client generated fault)?
In fact, is this really the only way that a client using generated stubs
can access a SOAP fault?
Thanks
Aoife