/** * newImportProcess * * @see http://help.mailup.com/display/mailupapi/WSMailUpImport.NewImportProcess * @param type $importProcessData * @return int */ public function newImportProcess($importProcessData) { if (!is_object($this->soapClient)) { return false; } try { $this->soapClient->NewImportProcess($importProcessData); $this->printLastResponse(); /** * This isn't correct. * * There's only a NewImportPrcoess return code if it's successful. * * If not we've got to look for the other format return code.. */ $returncode = $this->readReturnCode('NewImportProcess', 'ReturnCode'); if ($this->_config()->isLogEnabled($this->storeId)) { $this->_config()->dbLog("newImportProcess [ReturnCode] [{$returncode}]", 0); } return $returncode; } catch (SoapFault $soapFault) { Mage::log('SOAP error', 0); Mage::log($soapFault, 0); return false; } }