/** * Realiza la llamada SOAP al webservice que implementa la interfaz con el * Wrapper de Apache FOP (gov.siup.apps.fopwrapper.decretos.DecretoRenderer). * * Espera obtener elcontenido del PDF que resulta de procesar el XSL y el XML que * se envían como parametro ($this->xsl, $this->xml). * * @return void */ private function _loockUpPDFXslXml() { if (!is_null($this->xsl) && !is_null($this->xml)) { $options = array('uri' => $this->_wsUri, 'location' => $this->_wsLocation, 'trace' => $this->_wsTrace); $soapClient = new SoapClient(null, $options); try { $retBase64 = $soapClient->renderPDF_2(new SoapParam($this->xsl, 'xslT'), new SoapParam($this->xml, 'xml')); $this->pdf = base64_decode($retBase64); } catch (SoapFault $soapFault) { if ($this->_wsTrace == 1) { error_log($soapFault->getMessage()); die(var_dump($soapFault)); } throw $soapFault; } } else { throw new Exception("XSLFO vacío."); } }