array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'soapclient.getlastrequest.php', 1 => 'SoapClient::__getLastRequest', ), 'up' => array ( 0 => 'class.soapclient.php', 1 => 'SoapClient', ), 'prev' => array ( 0 => 'soapclient.getfunctions.php', 1 => 'SoapClient::__getFunctions', ), 'next' => array ( 0 => 'soapclient.getlastrequestheaders.php', 1 => 'SoapClient::__getLastRequestHeaders', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/soap/soapclient/getlastrequest.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
SoapClient::__getLastRequest — Returns last SOAP request
Returns the XML sent in the last SOAP request.
Bilginize:
This method works only if the SoapClient object was created with the
trace
option set totrue
.
Bu işlevin bağımsız değişkeni yoktur.
The last SOAP request, as an XML string.
Örnek 1 SoapClient::__getLastRequest() example
<?php
$client = new SoapClient("some.wsdl", array('trace' => 1));
$result = $client->SomeFunction();
echo "REQUEST:\n" . $client->__getLastRequest() . "\n";
?>