This function currently terminates execution as well, which may be undesirable. See: http://bugs.php.net/bug.php?id=49513
SoapServer::fault
(PHP 5 >= 5.0.1)
SoapServer::fault — Issue SoapServer fault indicating an error
Descrierea
public void SoapServer::fault
( string $code
, string $string
[, string $actor
[, string $details
[, string $name
]]] )
Sends a response to the client of the current request indicating an error.
Notă: This can only be called when handling a request.
Parametri
- code
-
The error code to return
- string
-
A brief description of the error
- actor
-
A string identifying the actor that caused the fault.
- details
-
More details of the fault
- name
-
The name of the fault. This can be used to select a name from a WSDL file.
Valorile întroarse
Nu este întoarsă nici o valoare.
SoapServer::fault
Amr Mostafa
09-Sep-2009 01:16
09-Sep-2009 01:16
Anonymous
16-Jul-2008 07:12
16-Jul-2008 07:12
If you use Adobe Flex, Flash or AIR as SOAP client and are unable to get the error message in case of a soap fault, upgrade to PHP 5.2.6.
Details in:
http://bugs.php.net/bug.php?id=43507
