/**
  * Init soap
  *
  * @return void
  */
 protected function initSoap()
 {
     if ($this->repository->getWsdlUrl()) {
         /** @var $soap tx_em_Connection_Soap */
         $this->soap = t3lib_div::makeInstance('tx_em_Connection_Soap');
         $this->soap->init(array('wsdl' => $this->repository->getWsdlUrl(), 'soapoptions' => array('trace' => 1, 'exceptions' => 1)), $this->settings['fe_u'], $this->settings['fe_p']);
     }
 }
 /**
  * Deletes given Repository
  *
  * @param  tx_em_Repository $repository  repository object
  * @return void
  */
 public function deleteRepository(tx_em_Repository $repository)
 {
     $GLOBALS['TYPO3_DB']->exec_DELETEquery(self::TABLE_REPOSITORY, 'uid=' . $repository->getId());
 }