I'm creating SoapClient
with trace=1
, result is okay, but __getLastRequest()
is empty anyway
$c = new \SoapClient($url, ['trace' => 1]);
$result = $sc->__soapCall('some_method_name', []);
$lr = $sc->__getLastRequest();
php 7.0
$c = new \SoapClient($url, ['trace' => 1]);
$result = $c->__soapCall('some_method_name', []);
$lr = $c->__getLastRequest();
echo "REQUEST:\n" . $lr . "\n";
Just try with this....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.