public function init($config)
{
if ($this->_configFile !== null) {
if (is_file($this->_configFile)) {
$dom = new TXmlDocument();
$dom->loadFromFile($this->_configFile);
$this->loadConfig($dom);
} else {
throw new TConfigurationException('soapservice_configfile_invalid', $this->_configFile);
}
}
$this->loadConfig($config);
$this->resolveRequest();
}