2
I’m having trouble with a webservice because I make a query that returns 69300 records and everything goes well but already with 69595 records it gives error.
The question: The webservice can you set a limit memory usage for the query? I am consuming 90MB in this query.
The program being run is strictly provided by webservice as shown below:
$array = array (
'key' => '8b0dc65f996f98fd178a9defd0efa077',
'module' => 'imoveis',
'method' => 'busca_fotos',
'field' => array (
'CODIGO' => 'Codigo',
'IMAGEM_G' => 'Foto'
),
# 'limit' => '69300'
);
$client = new SoapClient(null, array (
'uri' => 'http://soap.imo.bi/',
'location' => 'http://soap.imo.bi/soap.dll',
'trace' => 'trace'
));
$res = $client->get($array);
$tot = count($res);
echo "<pre>";
print_r($res);
echo "</pre>";
I once understood that you was developing this web service. So you’re just having problems with the large amount of data returned by it, right?
– André Ribeiro
And another thing, that key stated in your example is not your confidential information?
– André Ribeiro
It can be changed. Regarding the problem, the large amount of data returned is the problem.
– Marcos Vinicius
Take a look at my updated response.
– André Ribeiro