Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SOAP Fault Element

SOAP Fault Element


The SOAP Fault element is used to hold error and status information for a SOAP message.


SOAP Fault Element

The optional SOAP Fault element is used to indicate error messages.

If a Fault element is provided, it must be a child element of the Body element. In a SOAP message, the Fault element may appear only once.

The SOAP Fault element has the following child elements:

Child Element Description
A code for identifying the fault
A human-readable description of the fault
Information about who caused the fault
Holds application-specific error information related to the Body element

SOAP Fault Codes

The faultcode values defined below must be used in the faultcode element when describing an error:

Error Description
VersionMismatch An invalid namespace for the SOAP Envelope element was found
MustUnderstand A direct child element of the Header element (with a mustUnderstand attribute set to "1") could not be understood.
Client The message was improperly constructed, or contained incorrect information.
Server The server has a problem and therefore cannot process the message further.