phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgroupware test_xmlrpc.php,1.1.2.1,1.1.2.2


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] phpgroupware test_xmlrpc.php,1.1.2.1,1.1.2.2
Date: Wed, 29 Oct 2003 02:19:07 +0000

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv1729

Modified Files:
      Tag: proposal-branch
        test_xmlrpc.php 
Log Message:
corrected parsing routine. Still have another small additional feature to add

Index: test_xmlrpc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/Attic/test_xmlrpc.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** test_xmlrpc.php     28 Oct 2003 10:09:34 -0000      1.1.2.1
--- test_xmlrpc.php     29 Oct 2003 02:19:04 -0000      1.1.2.2
***************
*** 53,66 ****
  $result = xmlrpc_decode_request ($result, $method);
  
- $sid = $result->scalar;
- xmlrpc_set_type($sid, "base64");
- 
  /**************************************************************************\
  * I got the sessionid, so now I just make whatever request I want          *
  * The sessionid needs to be the first param I pass.                        *
  \**************************************************************************/
  
! $params = array($sid, 'Dan', 'Kuykendall');
! $method = "api.base.start";
  $data = xmlrpc_encode_request($method,$params);
  $next_request = $data;
--- 53,65 ----
  $result = xmlrpc_decode_request ($result, $method);
  
  /**************************************************************************\
  * I got the sessionid, so now I just make whatever request I want          *
  * The sessionid needs to be the first param I pass.                        *
  \**************************************************************************/
+ $sid = $result->scalar;
+ xmlrpc_set_type($sid, "base64");
  
! $params = array($sid, 'account_id'=>3);
! $method = "api.account_mgr.view";
  $data = xmlrpc_encode_request($method,$params);
  $next_request = $data;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]