* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see <http://www.gnu.org/licenses/>. */ DEFINE('XIBO', true); include_once "lib/xmds.inc.php"; $method = Kit::GetParam('method', _REQUEST, _WORD, ''); $service = Kit::GetParam('service', _REQUEST, _WORD, 'rest'); $response = Kit::GetParam('response', _REQUEST, _WORD, 'xml'); $serviceResponse = new XiboServiceResponse(); // Is the WSDL being requested. if (isset($_GET['wsdl']) || isset($_GET['WSDL'])) { $serviceResponse->WSDL(); } // Is the XRDS being requested if (isset($_GET['xrds'])) { $serviceResponse->XRDS(); } if (defined('XMDS')) { $service = 'soap'; } // Check to see if we are going to consume a service (if we came from xmds.php then we will always use the SOAP service) if (defined('XMDS') || $method != '') { // Create a service to handle the method switch ($service) { case 'soap': Kit::ClassLoader('xmdssoap'); try {
* along with Xibo. If not, see <http://www.gnu.org/licenses/>. */ DEFINE('XIBO', true); include_once "lib/xmds.inc.php"; $method = Kit::GetParam('method', _REQUEST, _WORD, ''); $service = Kit::GetParam('service', _REQUEST, _WORD, 'rest'); $response = Kit::GetParam('response', _REQUEST, _WORD, 'xml'); $version = Kit::GetParam('v', _REQUEST, _INT, 3); $serviceResponse = new XiboServiceResponse(); // Version Request? if (isset($_GET['what'])) { die(Config::Version('XmdsVersion')); } // Is the WSDL being requested. if (isset($_GET['wsdl']) || isset($_GET['WSDL'])) { $serviceResponse->WSDL($version); } // Is the XRDS being requested if (isset($_GET['xrds'])) { $serviceResponse->XRDS(); } if (defined('XMDS')) { $service = 'soap'; } // We need a theme new Theme(new User()); // Check to see if we are going to consume a service (if we came from xmds.php then we will always use the SOAP service) if (defined('XMDS') || $method != '') { // Create a service to handle the method switch ($service) { case 'soap':