PHP 8.4.1 Released!

SoapServer::__getLastResponse

(PHP 8 >= 8.4)

SoapServer::__getLastResponseReturns last SOAP response

Açıklama

public SoapServer::__getLastResponse(): ?string

Returns the XML sent in the last SOAP response.

Bilginize: This method works only if the SoapServer object was created with the trace option set to true.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The last SOAP response, as an XML string.

Örnekler

Örnek 1 SoapServer::__getLastResponse() example

<?php
$server
= SoapServer("some.wsdl", ["trace" => 1]);
$server->handle();
echo
"Response:\n" . $server->__getLastResponse() . "\n";
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top