Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Which ID for person.getById: msg#00001

cms.opengroupware.xmlrpc.devel

Subject: Re: Which ID for person.getById

> 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....

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation