<?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 )
考虑到索引范围从0
到19
,如何从各种记录中获取数据?