From: Dmitry Stogov Date: Tue, 24 Feb 2004 15:35:53 +0000 (+0000) Subject: Documentation update X-Git-Tag: RELEASE_0_2_0~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b0a18ba7badd96c19df7558a8415445284e2ca7;p=php Documentation update --- diff --git a/ext/soap/TODO b/ext/soap/TODO index 62dc678473..70416df660 100644 --- a/ext/soap/TODO +++ b/ext/soap/TODO @@ -81,6 +81,8 @@ Schema ? union ? support for user defined complex types ? full support for content model encoding/decoding + - + - Transport --------- diff --git a/ext/soap/readme.html b/ext/soap/readme.html index 1284391396..98efff3c53 100644 --- a/ext/soap/readme.html +++ b/ext/soap/readme.html @@ -157,7 +157,6 @@ remote SOAP clients over HTTP or HTTPS. getFunctions -- returns list of defined functions setPersistence -- sets persistence mode of SoapServer handle -- handles a SOAP request -fault -- generates SOAP fault response

SoapParam class

@@ -219,7 +218,6 @@ client side.
SoapServer::getFunctions -- returns list of defined functions SoapServer::setPersistence -- sets persistence mode of SoapServer SoapServer::handle -- handles a SOAP request -SoapServer::fault -- generates SOAP fault response SoapParam::SoapParam -- SoapParam constructor SoapVar::SoapVar -- SoapVar constructor SoapHeader::SoapHeader -- SoapHeader constructor @@ -256,7 +254,7 @@ is_soap_fault() functions checks if the given parameter is a SoapFault object.SomeFunction(...); - } catch {SoapFault $fault) { + } catch (SoapFault $fault) { trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faulstring})", E_ERROR); } ?> @@ -524,29 +522,6 @@ if the argument is omitted. ?> - -

SoapServer::fault

-

(PHP 5)

-

generates SOAP fault response

-

Description

-

void fault(string faultcode, string faultstring [, string faultactor [, mixed details]])

-This function is useful when you like to send SOAP fault response from PHP handler. -It never returns. -

Example

-
-<?php
-    function test($x) {
-        global $server;
-        $server->fault("Server","Some error message");
-    }
-
-    $server = new SoapServer(null,array('uri'=>"http://test-uri/"));
-    $server->addFunction("test");
-    $server->handle();
-?>
-
-

See also: SoapFault::SoapFault

-

SoapParam::SoapParam

(PHP 5)

@@ -638,9 +613,11 @@ Header element.

(PHP 5)

SoapFault constructor

Description

-

SoapFault(string faultcode, string faultstring [, string faultactor [, mixed details]])

-This class is useful when you like to send SOAP fault response from PHP handler. -

Example

+

SoapFault(string faultcode, string faultstring [, string faultactor [, mixed details [, string faultname [, mixed headerfault]]]])

+This class is useful when you like to send SOAP fault response from PHP handler.
+faultcode, faultstring, faultactor and details are standard elements of SOAP Fault;
+faultname is an optional parameter that can be used to select proper fault encoding from WSDL.
+headerfault is an optional parameter that can be used during SOAP header handling to report error in response header.

Example

 <?php
@@ -665,6 +642,5 @@ This class is useful when you like to send SOAP fault response from PHP handler.
     $server->handle();
 ?>
 
-

See also: SoapServer::fault

\ No newline at end of file