diff --git a/reference/soap/functions/soap-soapserver-fault.xml b/reference/soap/functions/soap-soapserver-fault.xml index e1e6b5e943..b36297d104 100644 --- a/reference/soap/functions/soap-soapserver-fault.xml +++ b/reference/soap/functions/soap-soapserver-fault.xml @@ -1,9 +1,9 @@ - + SoapServer->fault() - + Issue SoapServer fault indicating an error &reftitle.description; diff --git a/reference/soap/functions/soap-soapserver-handle.xml b/reference/soap/functions/soap-soapserver-handle.xml index ff59be8ac5..fb0a064c15 100644 --- a/reference/soap/functions/soap-soapserver-handle.xml +++ b/reference/soap/functions/soap-soapserver-handle.xml @@ -1,5 +1,5 @@ - + SoapServer->handle() @@ -56,8 +56,15 @@ function test($x) return $x; } +// function can return SoapHeader object +function echoMeStringResponse($string) +{ + return new SoapHeader('http://soapinterop.org/echoheader/', 'echoMeStringResponse', $string); +} + $server = new SoapServer(null, array('uri' => "http://test-uri/")); $server->addFunction("test"); +$server->echoMeStringResponse("test"); $server->handle(); ?> ]]> diff --git a/reference/soap/functions/use-soap-error-handler.xml b/reference/soap/functions/use-soap-error-handler.xml index 0ee5f6dddb..0ce8813f96 100644 --- a/reference/soap/functions/use-soap-error-handler.xml +++ b/reference/soap/functions/use-soap-error-handler.xml @@ -1,14 +1,14 @@ - + use_soap_error_handler - + Set whether to use the SOAP error handler and return the former value &reftitle.description; - voiduse_soap_error_handler + booluse_soap_error_handler boolhandler &warn.undocumented.func;