从stdClass对象TotalRecords获取数据

时间:2018-09-06 14:47:03

标签: php soap request

<?php
$codiceagente= 5429;
$elepag = 0;
$numpag = 0;
class DateTime2 extends DateTime {
    function __toString() { 
        return $this->format("Y-m-d");
    }
}
$wsdl_path = "http://89.46.71.117:8000/WILLeuro/services/anagrafe?wsdl";
$date = new DateTime2();
$client = new SoapClient($wsdl_path, array( 'soap_version'=>SOAP_1_1, 'trace'=>1));

$result = $client->RicercaPratiche(array('request' => array('NagIntProduttore' => $codiceagente, 'ElementiPerPagina' => $elepag, 'NumeroPagina' => $numpag, 'DataLavoro' => $date."")));

print_r($result);


?>

这是我的回应:

stdClass Object ( [RicercaPraticheResult] => [TotaleRecords] => 19 ) 

考虑到索引范围从019,如何从各种记录中获取数据?

0 个答案:

没有答案