mardi 2 avril 2019

How to get big record data from external API in laravel 5.7

I want to get 28.000 records data from external API. For do that i use nusoap_client for get the data, but when i test it i don't get any data and i don't get any error.

This is my function:

public function get_all(){
     $url = "http://xxx.xx.x.xx:xxx/services/Pending?wsdl";
     $client = new \nusoap_client($url, 'wsdl');

     $pDate = isset($_GET["Date"]) ? $_GET["Date"] : '26/2/2017 01:01:01';
     $operation = 'getPendingData';
     $param1 = array(
         'Date' => $Date,
     );
     $result = $client->call($operation, $param1);

     print_r($hasil1);
     exit();
}

In the API i must get data started from 26/02/2017 01:01:01, but when i test it i don't get any data. When i changed date to 27/02/2017 01:01:01 i got 759 records data.

How to fix this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire