forked from extern/egroupware
Adding xml-rpc classes which will be needed in future xml-rpc interface to our class
This commit is contained in:
parent
256b40b169
commit
65f1101563
@ -18,6 +18,8 @@
|
|||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
class xmlrpc { }
|
||||||
|
|
||||||
if (!function_exists('xml_parser_create')) {
|
if (!function_exists('xml_parser_create')) {
|
||||||
// Win 32 fix. From: "Leo West" <lwest@imaginet.fr>
|
// Win 32 fix. From: "Leo West" <lwest@imaginet.fr>
|
||||||
if($WINDIR) {
|
if($WINDIR) {
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
// XML RPC Server class
|
// XML RPC Server class
|
||||||
// requires: xmlrpc.inc
|
// requires: xmlrpc.inc
|
||||||
|
class xmlrpcs { }
|
||||||
|
|
||||||
// listMethods: either a string, or nothing
|
// listMethods: either a string, or nothing
|
||||||
$_xmlrpcs_listMethods_sig=array(array($xmlrpcArray, $xmlrpcString),
|
$_xmlrpcs_listMethods_sig=array(array($xmlrpcArray, $xmlrpcString),
|
||||||
|
22
xmlrpcs_test.php
Normal file
22
xmlrpcs_test.php
Normal 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")));
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user