Webservice operationnel
This commit is contained in:
parent
ed8e991677
commit
9576cb16d6
@ -3357,17 +3357,18 @@ class WsScores
|
||||
if ($cache->exist() && $this->cacheEnable ){
|
||||
return $cache->getBlock('prefs');
|
||||
}
|
||||
try {
|
||||
$client = $this->loadClient('gestion');
|
||||
$reponse = $client->getCredits();
|
||||
//try {
|
||||
$client = $this->loadClient('credit');
|
||||
$reponse = $client->getCredit();
|
||||
$cache->deletefile();
|
||||
$cache->setBlock($reponse->credit);
|
||||
$cache->setBlock($reponse->getCreditResult);
|
||||
var_dump($reponse);
|
||||
return $reponse->credit;
|
||||
} catch (SoapFault $fault) {
|
||||
/*} catch (SoapFault $fault) {
|
||||
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
|
||||
//Placer exception pour affichage message
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
|
@ -10,3 +10,5 @@ webservices.pieces.wsdl = "pieces/v0.1?wsdl"
|
||||
webservices.pieces.options.soap_version = SOAP_1_2
|
||||
webservices.catalog.wsdl = "catalog/v0.1?wsdl"
|
||||
webservices.catalog.options.soap_version = SOAP_1_2
|
||||
webservices.credit.wsdl = "credit/v0.1?wsdl"
|
||||
webservices.credit.options.soap_version = SOAP_1_2
|
||||
|
Loading…
Reference in New Issue
Block a user