//Load xmlrpc library
require_once('XmlRPC.php');
//Define Facekard server host
$facekard_server = 'localhost';

//Define facekard api server path
$facekard_server_path = '/wsdl/test/services';

//Make connection to server
$connection = new XmlRPC($facekard_server,$facekard_server_path);
//die(print_r($connection));

//Call remote function system.connect to get session id
$system_connect = $connection->call('system.connect');
//die(print_r($system_connect));
//Fetch sessid from xml object
$session_id = $system_connect->sessid;
$pass = '123456';
$user_object = $connection->call('user.login', 'admin','123456');// this work good
$user_object1 = $connection->call('user.login', $session_id, 'admin','123456');// this don't work
$node = $connection->call('node.retrieve', 1); // it work
$node1 = $connection->call('node.retrieve', $user_object->sessid, 1);// don't work
print_r($node);

i have enable Session authentication when create endpoint
Please help

Comments

marcingy’s picture

Status: Active » Fixed

Please look at the tests provided with the module.

itqn2004’s picture

Hi marcingy
How we can test with outside drupal with xmlpc?
With this example i have test success with version services 6.2. now it can not work with 3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.