public function send() { if ($client = new SoapClient($this->_webserviceURL)) { $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; foreach ($this->_fieldsList as $rootCase) { $params = $this->_getSimpleParamArray($rootCase['list']); $result = $client->WSI2_GetEtiquettes($params); $this->_parseResult($client, $result, $params); } unset($client); } else { throw new Exception($this->_mondialrelay->l('The Mondial Relay webservice isn\'t currently reliable')); } }