The Fault subelement is optional and is used to specify error and status information of a SOAP message. This subelement appears only in response messages. The Fault subelement, if present, can appear as a child element of the Body element. The Fault subelement can further contain the following subelements:
- faultcode - Contains code that identifies the error
- faultstring - Contains description of the faultcode
- faultactor - Stores information about the source of the error
- detail - Stores application-specific error information
The code example illustrates the use of the Fault subelements.
|