|
|
Choosing A Webhost: |
Re: Which ID for person.getById: msg#00001cms.opengroupware.xmlrpc.devel
> I have a question regarding the person.getById: > First, I got a list of alle persons via PHP with > 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? In POGI we do a (roughly) - $this->client = new XML_RPC_Client($this->uri, $this->hostname, $this->port); $params = array(new XML_RPC_Value($id, "int")); $message = new XML_RPC_Message('person.getById', $params); $response = $this->client->send($message); You can view the POGI source code here - http://svn.opengroupware.org/viewcvs/pogi/?root=OGoProjects - I have just about everything working. BTW, some versions of the PEAR XML-RPC module think ISO8601 date strings in the response payload are base64 encoded. This is incorrect (probably some moron thinking their wacky BLOG API is some kind of reference standard), so if dates look completely thrashed you need to comment out the line - $XML_RPC_xh[$parser]['value'] = base64_decode($XML_RPC_xh[$parser]['ac']); - in the "case 'DATETIME.ISO8601':" clause of "XML_RPC_ee" in RPC.php It took me ages to figure this out, why it worked on one box and not on another. Grrrr....
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Which ID for person.getById, Thomas Bückemeyer |
|---|---|
| Next by Date: | JOGI - Document Upload, Derya K. |
| Previous by Thread: | Which ID for person.getById, Thomas Bückemeyer |
| Next by Thread: | JOGI - Document Upload, Derya K. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |