[geeklog-cvs] Auth_Enterprise/Client AEXMLRPCClient.class.php,1.2,1.3
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Fri Jun 18 17:34:36 EDT 2004
Update of /var/cvs/Auth_Enterprise/Client
In directory www:/tmp/cvs-serv18588
Modified Files:
AEXMLRPCClient.class.php
Log Message:
I started working on the XMLRPC support. So far the call for authenticate() is working fine, the server is dying though beause of, I think, a compatibility issue between the XMLRPC Server from PEAR how it tries using PHP5 objects.
Index: AEXMLRPCClient.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Client/AEXMLRPCClient.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AEXMLRPCClient.class.php 17 Jun 2004 21:01:46 -0000 1.2
--- AEXMLRPCClient.class.php 18 Jun 2004 21:34:32 -0000 1.3
***************
*** 62,69 ****
--- 62,73 ----
* - proxyUser string username to authentication to proxy with, OPTIONAL
* - proxyPassword password password to authenticate to proxy with, OPTIONAL
+ * - xmlrpc_interface string Can be PEAR or PHP. PHP requires PHP to be compiled
+ * --with-xmlrpc OPTIONAL
*
* @author Tony Bibbs <tony at geeklog.net>
* @access public
* @param string $options Array of options for the XML RPC Client
+ * @todo refactor to support PHP's native XMLRPC methods as an alternative to using PEAR's
+ * implementation. This can be done without breaking client compatibility so I'm not in any rush yet.
*
*/
***************
*** 84,88 ****
// Build XMLRPC client
! $this->_XMLRPCClient = new XML_RPC_Client($options['path'], $options['server']
, $options['port'], $options['proxy'], $options['proxyPort'], $options['proxyUser']
, $options['proxyPassword']);
--- 88,92 ----
// Build XMLRPC client
! $this->XMLRPCClient = new XML_RPC_Client($options['path'], $options['server']
, $options['port'], $options['proxy'], $options['proxyPort'], $options['proxyUser']
, $options['proxyPassword']);
***************
*** 90,94 ****
// Enable debugging if requested.
if ($options['debug'] == 1) {
! $this->_XMLRPCClient->setDebug(true);
}
}
--- 94,98 ----
// Enable debugging if requested.
if ($options['debug'] == 1) {
! $this->XMLRPCClient->setDebug(true);
}
}
***************
*** 108,117 ****
$xmlRequest = new XML_RPC_Message('Auth_Enterprise.processRequest'
, array(new XML_RPC_Value('authenticate','string')
! , new XML_RPC_Value($this->getAppId(), 'string')
, new XML_RPC_Value($userName, 'string')
, new XML_RPC_Value($password, 'string')));
! $response = $this->_XMLRPCClient->send($xmlRequest);
$retval = $response->value();
$retval = XML_RPC_decode($retval);
$user = new AEUser();
$user->setUserId($retval['userId']);
--- 112,123 ----
$xmlRequest = new XML_RPC_Message('Auth_Enterprise.processRequest'
, array(new XML_RPC_Value('authenticate','string')
! , new XML_RPC_Value($this->appId, 'string')
, new XML_RPC_Value($userName, 'string')
, new XML_RPC_Value($password, 'string')));
! $response = $this->XMLRPCClient->send($xmlRequest);
! print_r($response); exit;
$retval = $response->value();
$retval = XML_RPC_decode($retval);
+ print_r($retval); exit;
$user = new AEUser();
$user->setUserId($retval['userId']);
***************
*** 130,134 ****
*
*/
! public function createAccount($adminUserName, $adminPassword, $userName, $userPassword)
{
$xmlRequest = new XML_RPC_Message('Auth_Enterprise.processRequest'
--- 136,140 ----
*
*/
! public function createAccountByAdmin($adminUserName, $adminPassword, $userName, $userPassword)
{
$xmlRequest = new XML_RPC_Message('Auth_Enterprise.processRequest'
More information about the geeklog-cvs
mailing list