/** * Helper para pegar as imagens do webservice * */ public function SaveImagemSoap($array) { // initialize SOAP client $options = array('location' => 'http://painel.local/webservice/index', 'uri' => 'http://painel.local/webservice/index'); try { $client = new Zend_Soap_Client(null, $options); return $client->saveImage($array); } catch (SoapFault $s) { die('ERROR: [' . $s->faultcode . '] ' . $s->faultstring); } catch (Exception $e) { die('ERROR: ' . $e->getMessage()); } }