dmitry Tue Feb 24 10:35:54 2004 EDT Modified files: /php-src/ext/soap TODO readme.html Log: Documentation update http://cvs.php.net/diff.php/php-src/ext/soap/TODO?r1=1.47&r2=1.48&ty=u Index: php-src/ext/soap/TODO diff -u php-src/ext/soap/TODO:1.47 php-src/ext/soap/TODO:1.48 --- php-src/ext/soap/TODO:1.47 Tue Feb 24 10:06:41 2004 +++ php-src/ext/soap/TODO Tue Feb 24 10:35:53 2004 @@ -81,6 +81,8 @@ ? union ? support for user defined complex types ? full support for content model encoding/decoding + - <any> + - <anyAttribute> Transport --------- http://cvs.php.net/diff.php/php-src/ext/soap/readme.html?r1=1.5&r2=1.6&ty=u Index: php-src/ext/soap/readme.html diff -u php-src/ext/soap/readme.html:1.5 php-src/ext/soap/readme.html:1.6 --- php-src/ext/soap/readme.html:1.5 Thu Feb 12 04:05:56 2004 +++ php-src/ext/soap/readme.html Tue Feb 24 10:35:53 2004 @@ -157,7 +157,6 @@ <tr><td><a href="#ref.soap.soapserver.getfunctions">getFunctions</a> -- returns list of defined functions</td></tr> <tr><td><a href="#ref.soap.soapserver.setpersistence">setPersistence</a> -- sets persistence mode of SoapServer</td></tr> <tr><td><a href="#ref.soap.soapserver.handle">handle</a> -- handles a SOAP request</td></tr> -<tr><td><a href="#ref.soap.soapserver.fault">fault</a> -- generates SOAP fault response</td></tr> </table> <a name="ref.soap.soapparam"> <h4>SoapParam class</h4> @@ -219,7 +218,6 @@ <tr><td><a href="#ref.soap.soapserver.getfunctions">SoapServer::getFunctions</a> -- returns list of defined functions</td></tr> <tr><td><a href="#ref.soap.soapserver.setpersistence">SoapServer::setPersistence</a> -- sets persistence mode of SoapServer</td></tr> <tr><td><a href="#ref.soap.soapserver.handle">SoapServer::handle</a> -- handles a SOAP request</td></tr> -<tr><td><a href="#ref.soap.soapserver.fault">SoapServer::fault</a> -- generates SOAP fault response</td></tr> <tr><td><a href="#ref.soap.soapparam.soapparam">SoapParam::SoapParam</a> -- SoapParam constructor</td></tr> <tr><td><a href="#ref.soap.soapvar.soapvar">SoapVar::SoapVar</a> -- SoapVar constructor</td></tr> <tr><td><a href="#ref.soap.soapheader.soapheader">SoapHeader::SoapHeader</a> -- SoapHeader constructor</td></tr> @@ -256,7 +254,7 @@ try { $client = SoapClient("some.wsdl"); $result = $client->SomeFunction(...); - } catch {SoapFault $fault) { + } catch (SoapFault $fault) { trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faulstring})", E_ERROR); } ?></PRE></TD></TR></TABLE> @@ -524,29 +522,6 @@ ?> </PRE></TD></TR></TABLE> -<a name="ref.soap.soapserver.fault"></a> -<h2>SoapServer::fault</h2> -<p>(PHP 5)</p> -<p>generates SOAP fault response</p> -<h3>Description</h3> -<p>void <b>fault</b>(string faultcode, string faultstring [, string faultactor [, mixed details]])</p> -This function is useful when you like to send SOAP fault response from PHP handler. -It never returns. -<h4>Example</h4> -<TABLE BORDER="0" BGCOLOR="#E0E0E0"><TR><TD><PRE CLASS="php"> -<?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(); -?> -</PRE></TD></TR></TABLE> -<p>See also: <a href="#ref.soap.soapfault.soapfault">SoapFault::SoapFault</a></p> - <a name="ref.soap.soapparam.soapparam"></a> <h2>SoapParam::SoapParam</h2> <p>(PHP 5)</p> @@ -638,9 +613,11 @@ <p>(PHP 5)</p> <p>SoapFault constructor</p> <h3>Description</h3> -<p><b>SoapFault</b>(string faultcode, string faultstring [, string faultactor [, mixed details]])</p> -This class is useful when you like to send SOAP fault response from PHP handler. -<h4>Example</h4> +<p><b>SoapFault</b>(string faultcode, string faultstring [, string faultactor [, mixed details [, string faultname [, mixed headerfault]]]])</p> +This class is useful when you like to send SOAP fault response from PHP handler.<br> +<b>faultcode</b>, <b>faultstring</b>, <b>faultactor</b> and <b>details</b> are standard elements of SOAP Fault;<br> +<b>faultname</b> is an optional parameter that can be used to select proper fault encoding from WSDL.<br> +<b>headerfault</b> is an optional parameter that can be used during SOAP header handling to report error in response header. <h4>Example</h4> <TABLE BORDER="0" BGCOLOR="#E0E0E0"><TR><TD><PRE CLASS="php"> <?php @@ -665,6 +642,5 @@ $server->handle(); ?> </PRE></TD></TR></TABLE> -<p>See also: <a href="#ref.soap.soapserver.fault">SoapServer::fault</a></p> </BODY> </HTML> \ No newline at end of file
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php