update : 2015.11.03
php.shukuma.com

검색:
 
 
Returns last SOAP response

SoapClient::__getLastResponse

(PHP 5 >= 5.0.1)

SoapClient::__getLastResponseReturns last SOAP response

설명

public string SoapClient::__getLastResponse ( void )

Returns the XML received in the last SOAP response.

Note:

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

인수

이 함수는 인수가 없습니다.

반환값

The last SOAP response, as an XML string.

예제

Example #1 SoapClient::__getLastResponse() example

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

참고