protected function showWsdl() { require_once $this->reqClassFile; $wsdlgen = new WSDL_Gen($this->reqClass, $this->baseURL . $this->reqSelf, $this->nsBase . $this->reqClass); header("Content-Type: text/xml"); echo $wsdlgen->toXML(); }
/** * Fonction permettant de générer le fichier WSDL * * @return CopixActionReturn */ public function processWsdl() { $ppo = new CopixPPO(); require_once $this->_exportClassFilename; require_once $this->_path . COPIX_CLASSES_DIR . "WSDL_Gen.php"; // Generation du WSDL // @ todo : improve with significant URL if (isset($this->_wsname)) { $wsdl = new WSDL_Gen($this->_exportClass, _url('wsserver||', array('wsname' => $this->_wsname)), _url('wsserver|default|wsdl', array('wsname' => $this->_wsname))); } else { $wsdl = new WSDL_Gen($this->_exportClass, _url('wsserver||'), _url('wsserver|default|wsdl')); } $res = $wsdl->toXML(); $tpl = new CopixTpl(); $tpl->assign('MAIN', $res); return _arContent($res, array('content-type' => 'text/xml')); }