From: pkiddie <pk...@us...> - 2005-07-28 13:18:36
|
Update of /cvsroot/stack/stack-1-0 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14725 Modified Files: Tag: development_xmlrqp question_bank.php rqp_server.php Log Message: Index: rqp_server.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/rqp_server.php,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** rqp_server.php 8 Apr 2005 15:10:29 -0000 1.4 --- rqp_server.php 28 Jul 2005 13:18:27 -0000 1.4.2.1 *************** *** 8,33 **** */ - // STACK specific code require_once('stackstd.php'); ! require_once($stack_root.'/scripts/rqp/rqp_calls.php'); require_once($stack_root.'/scripts/stackXML.php'); ! ! // Does this implementation offer others web services? if (!$stack_web_services_provide) { echo "This STACK server does not offer web services."; die(); ! } // Load nusoap if PHP 5 native support is not present. ! require_once($stack_root.'/scripts/rqp/uni_soap.php'); ! // Allow the WSDL to be returned by adding '?wsdl' to our URL ! if (isset($_GET['wsdl'])) ! handle_soap_wsdl_request($stack_root.'/scripts/rqp/rqp.wsdl', true); // Handle the SOAP request ! soap_serve($stack_root.'/scripts/rqp/rqp.wsdl', array('RQP_ServerInformation', 'RQP_ItemInformation', 'RQP_ProcessTemplate', 'RQP_Clone', 'RQP_SessionInformation', 'RQP_Render')); /** --- 8,37 ---- */ // STACK specific code require_once('stackstd.php'); ! //require_once($stack_root.'/scripts/rqp/rqp_calls.php'); ! require_once($stack_root.'/scripts/rqp/RQPv1p0Server.php'); require_once($stack_root.'/scripts/stackXML.php'); ! ! //Instance a new RQP server which deals with backend SOAP responses ! $rqpserver = new RQPv1p0(); ! $rqpserver->Url = "http://localhost/stack-1-0/rqp/RQPv1p0Server.php"; ! ! echo serialize($rqpserver->RQP_ServerInformation()); ! // Does this implementatio/n offer others web services? if (!$stack_web_services_provide) { echo "This STACK server does not offer web services."; die(); ! } // Load nusoap if PHP 5 native support is not present. ! //require_once($stack_root.'/scripts/rqp/uni_soap.php'); // Allow the WSDL to be returned by adding '?wsdl' to our URL ! //if (isset($_GET['wsdl'])) ! // handle_soap_wsdl_request($stack_root.'/scripts/rqp/rqp.wsdl', true); // Handle the SOAP request ! //soap_serve($stack_root.'/scripts/rqp/rqp.wsdl', array('RQP_ServerInformation', 'RQP_ItemInformation', 'RQP_ProcessTemplate', 'RQP_Clone', 'RQP_SessionInformation', 'RQP_Render')); /** *************** *** 60,66 **** * The first entry is the default. */ function RQP_ServerInformation() { ! $return = stack_rqp_ServerInformationCall(); ! return $return; } --- 64,70 ---- * The first entry is the default. */ + //<TODO> Update documentation for serverinformation function RQP_ServerInformation() { ! return $rqpserver->RQP_ServerInformation(); } Index: question_bank.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/question_bank.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** question_bank.php 25 Jul 2005 11:24:08 -0000 1.8 --- question_bank.php 28 Jul 2005 13:18:27 -0000 1.8.2.1 *************** *** 70,74 **** // questionbank_screen Begin again. - $admin = FALSE; if ('admin' == $user['username']) { --- 70,73 ---- *************** *** 202,206 **** include('html/pagehead.php'); ! switch ($action) { case 'delete': --- 201,205 ---- include('html/pagehead.php'); ! switch ($action) { case 'delete': |