Salve, sto testando le api v2 soap di magento per utilizzarle su un gestionale .NET
il mio test si basa in php
TEST
<?php
$time_start = microtime(true);
$address = "http://YOURDOMAIN.XXX/index.php/api/v2_soap/?wsdl";
$client = new SoapClient($address);
//Login
$sessionId = $client->login("USERxxx", "ApiKeyxxx");
$complexFilter = array(
'complex_filter' => array(
array(
'key' => 'type',
'value' => array('key' => 'in', 'value' => 'simple,configurable')
)
)
);
$result = $client->catalogProductList($sessionId, $complexFilter);
// Product List here...
echo '<h1>List of products via API-SOAP V2 WSDL</h1>';
echo '<h3>Address: '.$address.'</h3>';
echo '<h4>sessionID api: '.$sessionId.'</h4>';
echo '<hr>';
echo '<ul>';
for($i=0; $i<count($result); $i++){
echo '<li style="list-style:decimal;">'.$result[$i]->sku.'<br/>'.$result[$i]->name.'</li>';
}
echo '</ul><hr>';
echo '<h3>Time in seconds: '.(microtime(true) - $time_start).'</h3>';
//var_dump($result, (microtime(true) - $time_start));
?>
ma 15 secondi mi sembrano esagerati per avere il risultato di un numero esiguo di prodotti.
Qualcuno sa come velocizzare il tutto?
Considerato che abilitando la cache WSDL ho ridotto di circa 10 secondi (da 24 a 15)