<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.soapclient.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'soapclient.getlastrequest.php',
    1 => 'SoapClient::__getLastRequest',
    2 => 'Returns last SOAP request',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="soapclient.getlastrequest" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SoapClient::__getLastRequest</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SoapClient::__getLastRequest</span> &mdash; <span class="dc-title">Returns last SOAP request</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-soapclient.getlastrequest-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SoapClient::__getLastRequest</strong></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the XML sent in the last SOAP request.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    This method works only if the <span class="classname"><a href="class.soapclient.php" class="classname">SoapClient</a></span> object
    was created with the <code class="literal">trace</code> option set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-soapclient.getlastrequest-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">Questa funzione non contiene parametri.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-soapclient.getlastrequest-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The last SOAP request, as an XML string.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-soapclient.getlastrequest-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 SoapClient::__getLastRequest() example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$client </span><span style="color: #007700">= new </span><span style="color: #0000BB">SoapClient</span><span style="color: #007700">(</span><span style="color: #DD0000">"some.wsdl"</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'trace' </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">1</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SomeFunction</span><span style="color: #007700">();<br />echo </span><span style="color: #DD0000">"REQUEST:\n" </span><span style="color: #007700">. </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">__getLastRequest</span><span style="color: #007700">() . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-soapclient.getlastrequest-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="soapclient.getlastrequestheaders.php" class="methodname" rel="rdfs-seeAlso">SoapClient::__getLastRequestHeaders()</a> - Returns the SOAP headers from the last request</span></li>
    <li><span class="methodname"><a href="soapclient.getlastresponse.php" class="methodname" rel="rdfs-seeAlso">SoapClient::__getLastResponse()</a> - Returns last SOAP response</span></li>
    <li><span class="methodname"><a href="soapclient.getlastresponseheaders.php" class="methodname" rel="rdfs-seeAlso">SoapClient::__getLastResponseHeaders()</a> - Returns the SOAP headers from the last response</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>