extranet/library/Scores/Ws/Config.php
2014-03-14 10:42:09 +00:00

229 lines
7.6 KiB
PHP

<?php
/**
* WebService Configuration
*/
class Scores_Ws_Config
{
protected $location = null;
protected $services = array(
//Local
'local' => array(
'interne' => array(
'wsdl' => "http://webservice-2.4.sd.dev/interne/v0.6?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'entreprise' => array(
'wsdl' => "http://webservice-2.4.sd.dev/entreprise/v0.8?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'gestion' => array(
'wsdl' => "http://webservice-2.4.sd.dev/gestion/v0.3?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'saisie' => array(
'wsdl' => "http://webservice-2.4.sd.dev/saisie/v0.2?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'pieces' => array(
'wsdl' => "http://webservice-2.4.sd.dev/pieces/v0.1?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'catalog' => array(
'wsdl' => "http://webservice-2.4.sd.dev/catalog/v0.1?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
),
//Development
'development' => array(
'interne' => array(
'wsdl' => "http://webservice-2.4.sd.lan/interne/v0.6?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'entreprise' => array(
'wsdl' => "http://webservice-2.4.sd.lan/entreprise/v0.8?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'gestion' => array(
'wsdl' => "http://webservice-2.4.sd.lan/gestion/v0.3?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'saisie' => array(
'wsdl' => "http://webservice-2.4.sd.lan/saisie/v0.2?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'pieces' => array(
'wsdl' => "http://webservice-2.4.sd.lan/pieces/v0.1?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'catalog' => array(
'wsdl' => "http://webservice-2.4.sd.lan/catalog/v0.1?wsdl-auto",
'options' => array(
'soap_version' => SOAP_1_2
),
),
),
//sd-25137
'sd-25137' => array(
'interne' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'entreprise' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/entreprise/v0.8?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'gestion' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/gestion/v0.3?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'saisie' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/saisie/v0.2?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'pieces' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'catalog' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/catalog/v0.1?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
),
//Celeste
'celeste' => array(
'interne' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'entreprise' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/entreprise/v0.8?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'gestion' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/gestion/v0.3?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'saisie' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/saisie/v0.2?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'pieces' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'catalog' => array(
'wsdl' => "http://wse.scores-decisions.com:8081/catalog/v0.1?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
),
//Celeste Staging
'celeste-staging' => array(
'interne' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'entreprise' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'gestion' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'saisie' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'pieces' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
'catalog' => array(
'wsdl' => "http://wsrec.scores-decisions.com:8000/interne/v0.6?wsdl",
'options' => array(
'soap_version' => SOAP_1_2
),
),
),
);
/**
*
*/
public function setLocation($name)
{
$this->location = $name;
}
/**
* Return service parameters
* @param string $name
* @return array
*/
public function getService($name)
{
return $this->services[$this->location][$name];
}
}