(PHP 8 >= 8.4)
SoapServer::__getLastResponse — Returns last SOAP response
Returns the XML sent in the last SOAP response.
Nota: This method works only if the SoapServer object was created with the
trace
option set totrue
.
Questa funzione non contiene parametri.
The last SOAP response, as an XML string.
Example #1 SoapServer::__getLastResponse() example
<?php
$server = SoapServer("some.wsdl", ["trace" => 1]);
$server->handle();
echo "Response:\n" . $server->__getLastResponse() . "\n";
?>