public static function connect() { try { VtexConnector::$ws = new SoapClient('http://webservice-' . StoreConfigManager::getVtexAccountName() . '.vtexcommerce.com.br/service.svc?singleWsdl', array('login' => StoreConfigManager::getVtexUser(), 'password' => StoreConfigManager::getVtexPass(), 'trace' => 1, 'exception' => 0)); } catch (SoapFault $e) { Logger::error('Falha ao connectar ao Webservice.', $e, VtexConnector::$ws->__getLastRequest()); } }
public static function setCurrentCustomer($customer) { self::$currentCustomer = $customer; MagentoConnector::connect(); VtexConnector::connect(); }