/** * Initialize SOAP client * * @param string $urlWsdl * @return \nusoap_client */ protected function setClientSoap($urlWsdl) { $client = parent::setClientSoap($urlWsdl); if ($this->enableProxy == true) { $client->proxyhost = $this->proxyHost; $client->proxyport = $this->proxyPort; $client->proxyusername = $this->proxyUsername; $client->proxypassword = $this->proxyPassword; } return $client; }
/** * Constructor */ public function __construct() { parent::__construct(null); $this->setLogin(Config::get('yousign-api-client-laravel::config.login')); if (!Config::get('yousign-api-client-laravel::config.isEncryptedPassword')) { $this->setPassword($this->encryptPassword(Config::get('yousign-api-client-laravel::config.password'))); } else { $this->setPassword(Config::get('yousign-api-client-laravel::config.username')); } $this->setApiKey(Config::get('yousign-api-client-laravel::config.api_key')); $this->setEnvironment(Config::get('yousign-api-client-laravel::config.environment')); }