Hello. This works (event is created): <feed xmlns='http://www.w3.org/2005/Atom' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gCal='http://schemas.google.com/gCal/2005'> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event' /> <entry> <batch:id>1</batch:id> <batch:operation type='insert' /> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event' /> <title type='text'>Event inserted via batch</title> <content type='text'>Useless content</content> </entry> ...................... </feed>
But if I add gd:when or gd:where elements to <entry>, as I do when creating events without batch request: <feed xmlns='http://www.w3.org/2005/Atom' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gCal='http://schemas.google.com/gCal/2005'> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event' /> <entry> <batch:id>1</batch:id> <batch:operation type='insert' /> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event' /> <title type='text'>Event inserted via batch</title> <content type='text'>Useless content</content> <gd:when startTime='2007-12-22T14:42:00.000+02:00' endTime='2007-12-22T15:42:00.000+02:00'/> <gd:where valueString='Rolling stones field'/> </entry> ...................... </feed> it does not work and the returned XML data: <?xml version='1.0' encoding='UTF-8'?><atom:feed xmlns:atom='http:// www.w3.org/2 005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:batch ='http://schemas.google.com/gdata/batch' xmlns:gCal='http:// schemas.google.com/g Cal/2005' xmlns:gd='http://schemas.google.com/g/2005'><atom:id>http:// www.google .com/calendar/feeds/default/private/full</ atom:id><atom:updated>2007-12-21T13:50 :11.714Z</atom:updated><atom:title type='text'>Batch Feed</ atom:title><atom:link rel='http://schemas.google.com/g/2005#feed' type='application/atom +xml' href='h ttp://www.google.com/calendar/feeds/default/private/full'/><atom:link rel='http: //schemas.google.com/g/2005#post' type='application/atom+xml' href='http://www.g oogle.com/calendar/feeds/default/private/full'/><atom:link rel='http:// schemas.g oogle.com/g/2005#batch' type='application/atom+xml' href='http:// www.google.com/ calendar/feeds/default/private/full/batch'/></atom:feed> is the same as for empty batch request: <feed xmlns='http://www.w3.org/2005/Atom' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gCal='http://schemas.google.com/gCal/2005'> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event' /> </feed> What is my mistake? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
