/** * returns the internal soap client * if not allready exists we create an instance of * Zend_Soap_Client * * @final * @return Zend_Service_DeveloperGarden_Client_Soap */ public final function getSoapClient() { if ($this->_soapClient === null) { /** * init the soapClient */ $this->_soapClient = new Zend_Service_DeveloperGarden_Client_Soap($this->getWsdl(), $this->getClientOptions()); $this->_soapClient->setCredential($this->_credential); $tokenService = new Zend_Service_DeveloperGarden_SecurityTokenServer(array('username' => $this->_credential->getUsername(), 'password' => $this->_credential->getPassword(), 'environment' => $this->getEnvironment(), 'realm' => $this->_credential->getRealm())); $this->_soapClient->setTokenService($tokenService); } return $this->_soapClient; }