[OGo-XML-RPC] Which ID for person.getById
Thomas Bückemeyer
xmlrpc@opengroupware.org
Tue, 02 May 2006 14:14:59 +0200
Hello,
I have a question regarding the person.getById:
First, I got a list of alle persons via PHP with
$params = array(new XML_RPC_Value("name like '*'"));
$msg = new XML_RPC_Message("person.fetchIds", $params);
$response = $client->send($msg);
$v = $response->value();
$nSize = $v->arraysize();
for($nA = 0; $nA < $nSize; $nA++) {
$val = $v->arraymem($nA);
var_dump($val);
}
The List shows like
object(XML_RPC_Value)#4 (2) { ["me"]=> array(1) { ["string"]=>
string(42) "skyrix://bueckemeyer/bueckemeyer-ogo/10000" }
["mytype"]=> int(1) } object(XML_RPC_Value)#5 (2) { ["me"]=>
array(1) { ["string"]=> string(42) "skyrix://bueckemeyer/bueckemeyer-
ogo/10120" } ["mytype"]=> int(1) } object(XML_RPC_Value)#6 (2) {
["me"]=> array(1) { ["string"]=> string(42)
"skyrix://bueckemeyer/bueckemeyer-ogo/10570" } ["mytype"]=> int(1) }
When i then try to geht a person document from the User with the id
10570 with
$msg = new XML_RPC_Message("person.getById", new
XML_RPC_Message('10570'));
the result is NULL.
Do I need another ID? Does someone know whats's wrong?
Thanks for help!
Thomas
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192