/** * Checks the entered credentials data */ public function testApiCredentialsAction() { try { $wsdl = $this->Request()->ApiWsdl . '/plenty/api/soap/version110/?xml'; $Client = PlentymarketsSoapClient::getTestInstance($wsdl, $this->Request()->ApiUsername, $this->Request()->ApiPassword); } catch (Exception $E) { $this->View()->assign(array('success' => false, 'message' => $E->getMessage())); return; } $this->View()->assign(array('success' => true, 'data' => $Client->GetServerTime())); }