getLayout()->setArea('adminhtml'); Mage::app()->setCurrentStore('admin'); $this->setFlag('', self::FLAG_NO_START_SESSION, 1); // Do not start standart session parent::preDispatch(); return $this; } /** * Retrive webservice server * * @return Mage_Api_Model_Server */ protected function _getServer() { return Mage::getSingleton('api/server'); } }