protected function createServer()
{
if ($this->_server === null) {
if ($this->getApplication()->getMode() === TApplicationMode::Debug) {
ini_set("soap.wsdl_cache_enabled", 0);
}
$this->_server = new \SoapServer($this->getWsdlUri(), $this->getOptions());
}
return $this->_server;
}