Closed (fixed)
Project:
Services
Version:
7.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
10 May 2012 at 04:11 UTC
Updated:
24 May 2012 at 06:20 UTC
//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
Comment #1
marcingy commentedPlease look at the tests provided with the module.
Comment #2
itqn2004 commentedHi 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