(PHP 5, PHP 7, PHP 8)
SoapServer::fault — Issue SoapServer fault indicating an error
$code,$string,$actor = "",$details = null,$name = "",$lang = ""Sends a response to the client of the current request indicating an error.
Note:
This can only be called when handling a request.
codeThe error code to return
stringA brief description of the error
actorA string identifying the actor that caused the fault.
detailsMore details of the fault
nameThe name of the fault. This can be used to select a name from a WSDL file.
langNo value is returned.
| Version | Description |
|---|---|
| 8.5.0 |
The optional parameter lang has been added
in order to be compliant with the SOAP 1.2 specification.
|