The soap fault element is used to preserve the error and status information of the 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 can only appear once.
The Fault Element of soap has the following sub-elements:
Child Element |
Description |
<Faultcode> |
Code for Fault Identification |
<Faultstring> |
Fault description for users |
<Faultactor> |
Information about who caused the fault |
<Detail> |
Persists application-specific error messages involving the body Element |
Soap fault code
The faultcode value defined below must be used in the faultcode element that describes the error:
Error |
Description |
Versionmismatch |
Invalid namespace of the soap envelope element is found |
Mustunderstand |
A direct sub-element of the Header element (with the mustunderstand attribute set to "1") cannot be understood. |
Client |
Messages are incorrectly formed or contain incorrect information. |
Server |
The server is faulty, so it cannot be processed. |