Webservice operationnel

This commit is contained in:
Claire DELBOS 2017-02-27 15:36:07 +01:00
parent ed8e991677
commit 9576cb16d6
2 changed files with 9 additions and 6 deletions

View File

@ -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;
}
}*/
}

View File

@ -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