JavaScript Editor Javascript debugger     Website design 


SoapClient->__getLastResponse()

Returns last SOAP response. ()

SoapClient {
  string __getLastResponse();
}
Note:

This method works only if the SoapClient object was created with the trace option.

Return Values

The last SOAP response.

Examples

Example 2275. SoapClient->__getLastResponse() example

<?php
$client
= SoapClient("some.wsdl", array('trace' => 1));
$result = $client->SomeFunction();
echo
"RESPONSE:\n" . $client->__getLastResponse() . "\n";
?>