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 — エラーを示す SoapServer フォールト を発行する
説明
public void SoapServer::fault
( string $code
, string $string
[, string $actor
[, string $details
[, string $name
]]] )
現在のリクエストに対するレスポンスとして、エラーを表す内容をクライアントに送信します。
注意: これは、リクエストを処理する際にのみコールされます。
パラメータ
- code
-
返したいエラーコード。
- string
-
エラーについての簡単な説明。
- actor
-
フォールトを引き起こしたアクターをあらわす文字列。
- details
-
フォールトについての詳細。
- name
-
フォールトの名前。これは WSDL ファイルにある名前を使うことができます。
返り値
値を返しません。
SoapServer::fault
Amr Mostafa
09-Sep-2009 10:16
09-Sep-2009 10:16
Anonymous
16-Jul-2008 04:12
16-Jul-2008 04: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
