Session avec Scores_Ws_Client
This commit is contained in:
parent
4f28b3fcb8
commit
d047c57d67
@ -124,10 +124,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
);
|
||||
$datemajTexte = $dateDerMaj = '';
|
||||
$datemajTexte.= '<table>';
|
||||
foreach ( $tabDate as $dateId => $dateLib ) {
|
||||
if ( isset($infos->{$dateId})
|
||||
&& !empty($infos->{$dateId})
|
||||
&& $infos->{$dateId}!='0000-00-00') {
|
||||
foreach ($tabDate as $dateId => $dateLib ) {
|
||||
if (isset($infos->{$dateId}) && !empty($infos->{$dateId})
|
||||
&& $infos->{$dateId}!='0000-00-00') {
|
||||
|
||||
if ( $dateId == 'DateMajID') {
|
||||
$date = new Zend_Date($infos->DateMajID, 'yyyy-MM-dd');
|
||||
|
@ -123,10 +123,11 @@ class Scores_Session_Entreprise
|
||||
|
||||
protected function getInfoEntrep($siret, $id = 0)
|
||||
{
|
||||
$this->logger->info('getInfoEntrep');
|
||||
require_once 'Scores/WsScores.php';
|
||||
$ws = new WsScores();
|
||||
$etab = $ws->getIdentiteLight($siret, $id);
|
||||
$ws = new Scores_Ws_Client('interne', '0.6');
|
||||
$params = new stdClass();
|
||||
$params->siret = $this->siret;
|
||||
$params->id = $this->id;
|
||||
$etab= $ws->getIdentiteLight($params);
|
||||
$this->setSession($etab);
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
|
||||
|
||||
// --- Debug
|
||||
if ( array_key_exists('debug', $methodConfig) ) {
|
||||
$this->logger->info($fault->faultcode.' - '.$fault->faultstring);
|
||||
$this->logger->error($fault->faultcode.' - '.$fault->faultstring);
|
||||
}
|
||||
|
||||
// --- Gestion des SOAP fault
|
||||
|
@ -1,6 +1,10 @@
|
||||
<?php
|
||||
return array(
|
||||
'0.6' => array(
|
||||
'getIdentiteLight' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getRncsEven' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
|
Loading…
Reference in New Issue
Block a user