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 Dan Diephouse <da...@envoisolutions.com> on 2004/01/17 18:57:48 UTC
Custom FaultCode (what is the spec saying?)
I am looking at how to communicate fault information from my service to
clients. I am unclear about the faultCode element and it's potential
uses. The spec says:
The faultcode values defined in this section MUST be used in the
faultcode element when describing faults defined by this specification.
The namespace identifier for these faultcode values is
"http://schemas.xmlsoap.org/soap/envelope/". Use of this space is
recommended (but not required) in the specification of methods defined
outside of the present specification.
Does this mean I can definte my own custom faultcodes? i.e. ones that
aren't Server or User or VersionMismatch... For example, NoSuchStock for
the stock lookup example.
And, if I can definte my own faultcodes, is that recommended? Or would
I be much better off using the <detail> element.
Thanks,
Dan Diephouse
http://envoisolutions.com/people/dan