logictude
08-27-2005, 07:40 PM
Please help.
I've been fairly successful with simple remoting when dealing with MySQL. I've had no issues.
But, I was trying to setup another function in my gateway.php file that allows me to access some session information from Drupal. It basically works like this:
myservice.getUser();
calls
function getUser() {
include('/some/path/to/drupals/bootstrap.inc');
global $user;
return $user->{'uid'};
}
function getUser_Result(r) {
// do something with the information
}
NetConnection.Call.BadVersion
So. I thought, Drupal has an XMLRPC interface, why not call the xmlrpc within getUser(). That way I'd have a direct access to the Drupal system without this little hack. That experiment turned out rather painful too.
The funny thing is, all I need is one variable stored in $user.
$result = $server->send($message); proved to kill my script.
Anyone have any suggestions.
I've been fairly successful with simple remoting when dealing with MySQL. I've had no issues.
But, I was trying to setup another function in my gateway.php file that allows me to access some session information from Drupal. It basically works like this:
myservice.getUser();
calls
function getUser() {
include('/some/path/to/drupals/bootstrap.inc');
global $user;
return $user->{'uid'};
}
function getUser_Result(r) {
// do something with the information
}
NetConnection.Call.BadVersion
So. I thought, Drupal has an XMLRPC interface, why not call the xmlrpc within getUser(). That way I'd have a direct access to the Drupal system without this little hack. That experiment turned out rather painful too.
The funny thing is, all I need is one variable stored in $user.
$result = $server->send($message); proved to kill my script.
Anyone have any suggestions.