Issue #0001653: for test

This commit is contained in:
Aram HARUTYUNYAN 2013-10-04 07:22:18 +00:00
parent 99abf405a4
commit c9d2189c17
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class Application_Model_Worldcheck extends Zend_Db_Table_Abstract
);
$sql = $this->insert($params);
}
Zend_Registry::get('firebug')->info($result);
return $result;
}

View File

@ -9,6 +9,7 @@ class WsWorldCheck
public function __construct()
{
$c = Zend_Registry::get('config');
Zend_Registry::get('firebug')->info($c);
$location = ($c->profil->webservice->location == 'production') ? 'production' : 'pilot';
$cWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/webservicesWC.ini', $location);
$config = $cWC->toArray();
@ -17,6 +18,7 @@ class WsWorldCheck
$configWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/applicationWC.ini');
$data = $configWC->toArray();
$this->wcData = $data['wsworldcheck'];
Zend_Registry::get('firebug')->info($this->wcData);
}
/**
@ -49,7 +51,7 @@ class WsWorldCheck
} catch (Exception $e) {
throw new Exception('Application Error');
}
Zend_Registry::get('firebug')->info($client);
return $client;
}
@ -67,6 +69,7 @@ class WsWorldCheck
$headerVar = new SoapVar($headerPart, XSD_ANYXML);
$header = new SoapHeader($this->wcData['namespace'], $this->wcData['securityType'], $headerVar, true);
Zend_Registry::get('firebug')->info($header);
return $header;
}
@ -89,6 +92,7 @@ class WsWorldCheck
$client = $this->loadClientWC('screener');
try {
$response = $client->screen($params);
Zend_Registry::get('firebug')->info($response);
echo $client->__getLastRequest();
echo $client->__getLastResponse();
return $response->return;