I played around with this using the Java API and am still unable to
re-create the problem with RRULE being ignored (though there is still a
problem with the custom timezone).

> If you are asking, am I sure that I am calling:
> recurrence.setValue(value) then the answer is: absolutely yes.

Are you then calling entry.setRecurrence(recurrence) ?

Here's the function I'm using:

  public void addRecurringEvent(String title, String content, String
recurString)
         throws java.io.IOException,
                com.google.gdata.util.AuthenticationException,
                com.google.gdata.util.ServiceException
  {
    URL postUrl = null;

    postUrl = new URL(calendarUrl);

    CalendarEventEntry myEntry = new CalendarEventEntry();
    myEntry.setTitle(new PlainTextConstruct(title));
    myEntry.setContent(new PlainTextConstruct(content));

    Person author = new Person(name, null, user);
    myEntry.getAuthors().add(author);


    Recurrence r = new Recurrence();
    r.setValue(recurString);
    myEntry.setRecurrence(r);

    CalendarService myService =
      new CalendarService("rbtest");
    myService.setUserCredentials(user,pass);

    EventEntry insertedEntry = myService.insert(postUrl, myEntry);
  }


Then I have the following in my main method.

    try {

    String crlf = "\r\n";
    String recur = null;
    recur = "DTSTART;TZID=America/Los_Angeles:20061226T060000" + crlf
+
    //recur =
"DTSTART;TZID=/scheduleworld.com/Olson_20041115_1/America/Toronto:20061010T1­00000"
+ crlf +
                "DURATION:PT30M" + crlf +
                "RRULE:FREQ=WEEKLY;COUNT=3;INTERVAL=2;BYDAY=TU" + crlf
+
                "BEGIN:VTIMEZONE" + crlf +

"TZID:/scheduleworld.com/Olson_20041115_1/America/Toronto" + crlf +
                "X-LIC-LOCATION:America/Toronto" + crlf +
                "BEGIN:STANDARD" + crlf +
                "TZOFFSETFROM:-0400" + crlf +
                "TZOFFSETTO:-0500" + crlf +
                "TZNAME:EST" + crlf +
                "DTSTART:19701025T020000" + crlf +
                "RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU" + crlf +
                "END:STANDARD" + crlf +
                "BEGIN:DAYLIGHT" + crlf +
                "TZOFFSETFROM:-0500" + crlf +
                "TZOFFSETTO:-0400" + crlf +
                "TZNAME:EDT" + crlf +
                "DTSTART:19700405T020000" + crlf +
                "RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU" + crlf +
                "END:DAYLIGHT" + crlf +
                "END:VTIMEZONE" + crlf;


      tc.addRecurringEvent("First event to be added",
                "this is my first event",
                recur
                )

    } catch (java.io.IOException e) {
      System.err.println("IOException while adding event");
    } catch (com.google.gdata.util.AuthenticationException e) {
      System.err.println("AuthenticationException while adding event");
    } catch (com.google.gdata.util.ServiceException e) {
      System.err.println("ServiceException while adding event - " +
e.getMessage());
      System.err.println(e.getResponseBody());
    }

-----------------------

Mark - are you able to do a packet capture (using something like
wireshark or fiddler) of what's happening when you are making your
call?  If not, I will work up a debug procedure so you can get the
request and response objects from within your code.

Thanks,

-Ryan


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

Reply via email to