SOAP Getting St...login
SOAP Getting Started Tutorial
author:php.cn  update time:2022-04-11 14:22:12

SOAP Fault element



The SOAP Fault element is used to store error and status information for SOAP messages.


SOAP Fault Element

The optional SOAP Fault element is used to indicate an error message.

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

The Fault element of SOAP has the following child elements:

Sub-element Description
<faultcode>A code identifying the fault
<faultstring>A human-readable description of the fault
<faultactor>Information about who caused the fault
<detail>Preservation involves Application-specific error messages for the Body element

SOAP Fault Code

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

ErrorDescription
VersionMismatchAn invalid namespace for the SOAP Envelope element was found
MustUnderstandA direct child element of the Header element (with the mustUnderstand attribute set to "1") cannot be understood.
ClientThe message was incorrectly formed or contained incorrect information.
ServerThere is a problem with the server, so the process cannot continue.

php.cn