Hi, It might be a bit difficult to debug without a wire trace of the XML that was generated, try to set up XML capture with one of the technique in this article -
http://code.google.com/support/bin/answer.py?answer=71567&topic=12359 Hope that helps, Austin On Sat, May 10, 2008 at 1:42 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi I'm having trouble adding an event to Google calendar. I get the > following exception: > > > Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with > message 'Expected response code 200, got 400' in C:\xampp\php\library > \Zend\Gdata\App.php:468 Stack trace: #0 C:\xampp\php\library\Zend\Gdata > \App.php(459): Zend_Gdata_App- > >post(Object(Zend_Gdata_Calendar_EventEntry), 'http://www.goog...', 4, > 'application/ato...', Array) #1 C:\xampp\php\library\Zend\Gdata > \App.php(663): Zend_Gdata_App- > >post(Object(Zend_Gdata_Calendar_EventEntry), 'http://www.goog...') #2 > C:\xampp\php\library\Zend\Gdata\Calendar.php(156): Zend_Gdata_App- > >insertEntry(Object(Zend_Gdata_Calendar_EventEntry ), 'http:// > www.goog...', 'Zend_Gdata_Cale...') #3 C:\xampp\htdocs\dev\cal > \calendar.php(384): Zend_Gdata_Calendar- > >insertEvent(Object(Zend_Gdata_Calendar_EventEntry )) #4 C:\xampp > \htdocs\dev\cal\index.php(11): createEvent(Object(Zend_Http_Client), > 'ACC--Test', 'Test', 'Test', '10/05/2008', '09:00', '10/05/2008', > '09:15', '0') #5 {main} thrown in C:\xampp\php\library\Zend\Gdata > \App.php on line 468 > > Code: > > <?php > include("calendar.php"); > $user = '[EMAIL PROTECTED]'; > $pass = '****'; > $tzOffset = '0'; > > if(isset($_POST['submit'])){ > $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; > $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass, > $service); > createEvent($client, "ACC--".$_POST['title'], $_POST['desc'], > $_POST['project'], $_POST['date'], "09:00", $_POST['date'], "09:15", > $tzOffset); > }else{ > ?> > <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> > Title: <br> > <input type="text" name="title"><br> > Description: <br> > <textarea rows="5" cols="80" name="desc"></textarea><br> > Project: <br> > <input type="text" name="project"><br> > Date of Accomplishment:<br> > <input type="text" name="date"><br> > <input type="submit" name="submit" value="submit"> > </form> > <?php > } > ?> > > I've been reading about Windows Xampp and OpenSSL. Tried to configure > all the settings people suggest online, but it's still not working. > > If i run the calendar.php file from the demos i do get a list of > calendars, but refreshing gives me another exception. > > Any help would be appreciated. > > Ross > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
