Adding xml-rpc classes which will be needed in future xml-rpc interface to our class

This commit is contained in:
seek3r 2001-02-07 09:09:43 +00:00
parent 256b40b169
commit 65f1101563
3 changed files with 25 additions and 0 deletions

View File

@ -18,6 +18,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class xmlrpc { }
if (!function_exists('xml_parser_create')) {
// Win 32 fix. From: "Leo West" <lwest@imaginet.fr>
if($WINDIR) {

View File

@ -20,6 +20,7 @@
// XML RPC Server class
// requires: xmlrpc.inc
class xmlrpcs { }
// listMethods: either a string, or nothing
$_xmlrpcs_listMethods_sig=array(array($xmlrpcArray, $xmlrpcString),

22
xmlrpcs_test.php Normal file
View File

@ -0,0 +1,22 @@
<?php
/**************************************************************************\
* phpGroupWare module (File Manager) *
* http://www.phpgroupware.org *
* Written by Dan Kuykendall <dan@kuykendall.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
$phpgw_info["flags"] = array("currentapp" => "login", "noheader" => True);
include("header.inc.php");
CreateObject("phpgwapi.xmlrpc");
CreateObject("phpgwapi.xmlrpcs");
function hello($params) {
return new xmlrpcresp(new xmlrpcval("Hello World", "string"));
}
$s=new xmlrpc_server(array("examples.hello" => array("function" => "hello")));
?>