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

Using POGI to get appointments out of OGo: msg#00004

cms.opengroupware.xmlrpc.devel

Subject: Using POGI to get appointments out of OGo

Hi list,

I'm trying to use POGI to get appointments out of OGo onto my webpage, but
everything I get is this error from the xmlrpcd:

---------------------------------------------------------------
localhost - - [20/Sep/2005:11:53:19 GMT] "POST /RPC2 HTTP/1.0" 200 314 0.002 -
- 0
Sep 20 11:53:19 ogo-xmlrpcd-1.0a [28338]: >DirectAction> turn exception into
fault: (Exception name:LSDBObjectCommandException
class:LSDBObjectCommandException reason:appointment::query failed: invalid
date range info:<nil>)
localhost - - [20/Sep/2005:11:53:19 GMT] "POST /RPC2 HTTP/1.0" 200 313 0.004 -
- 0
localhost - - [20/Sep/2005:11:53:20 GMT] "POST /RPC2 HTTP/1.0" 200 314 0.002 -
- 0
Sep 20 11:53:20 ogo-xmlrpcd-1.0a [28338]: >DirectAction> turn exception into
fault: (Exception name:LSDBObjectCommandException
class:LSDBObjectCommandException reason:appointment::query failed: invalid
date range info:<nil>)
localhost - - [20/Sep/2005:11:53:20 GMT] "POST /RPC2 HTTP/1.0" 200 313 0.004 -
- 0
---------------------------------------------------------------

I started the xmlrpcd with this command: /usr/sbin/ogo-xmlrpcd-1.0a -WOPort
23000


Here's the relevant PHP code:

---------------------------------------------------------------
function showOGoAppointments() {
ini_set("include_path", ".:/path/to/POGI/:/usr/share/php");
require_once("OGoAppointment.php");

$server = new OGoServer("localhost", "/RPC2", 23000);
// Set you user credentials - username, password
$server->login("<user>", "<password>");
$appointmentManager = $server->getAppointmentManager();
$today = date("Y-m-d");
$yesterday = "2005-09-19";
$appointments = $appointmentManager->getBetween($today,$yesterday);

if(is_array($appointments)) {
foreach($appointments as $appointment) {
echo $appointment->getShortId();
echo $appointment->getShortId();
echo $appointment->getTitle();
echo $appointment->getStartDate();
echo $appointment->getEndDate();
}
}
}
---------------------------------------------------------------

I am not sure if this php code should work, but I think I just copied most
parts out of the example scripts. I'm using POGI 0.17 as 0.18 had no source
directory in the downloaded tar.gz archive.

Any hints?

Timo
--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<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