Results 1 to 3 of 3

Thread: Cannot modify appointment

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    5

    Default Cannot modify appointment

    Hi All,

    I use the zimbra client JAVA API to create/modify appointment via ZMailbox. Creation process works fine but when I try to modify the created appointment I get the following SOAP fault exception:

    com.zimbra.common.soap.SoapFaultException: The specified Invite is out of date (has been updated): f4e1413f-4c68-4198-a0d9-6b07325bb172:822
    ExceptionId:btpool0-199://127.0.0.1:7071/service/admin/soap/ModifyAppointmentRequest:1282284464868:138b5fcd5ac b5cbf
    Code:mail.INVITE_OUT_OF_DATE


    My code source is as follow:

    ...
    // get mail box
    ZMailbox mailbox = ZMailbox.getMailbox(options);

    /**
    * create appointment
    */
    // create message
    ZMailbox.ZOutgoingMessage outgoingMessage = new ZOutgoingMessage();
    // message subject
    outgoingMessage.setSubject("Test zimbra JAVA client API");
    // message part
    outgoingMessage.setMessagePart(new MessagePart("text/plain", "This message may be deleted because it's just a test"));

    // create invite
    ZInvite invite = new ZInvite();
    // create invite
    ZComponent comp = new ZComponent();
    // set start date to the current date and time
    comp.setStart(new ZDateTime(ZimbraClientUtil.toVCalendarFormat(new Date())));
    ZDuration duration = new ZDuration();
    // set the default task's duration to 30 minutes
    duration.setMinutes(30);
    comp.setDuration(duration);
    // set organizer
    comp.setOrganizer(new ZOrganizer("aina"));
    comp.setName("Task name");
    comp.setLocation("Task location");
    invite.getComponents().add(comp);

    ZAppointmentResult appointmentResult = mailbox.createAppointment(ZFolder.ID_CALENDAR, null, outgoingMessage, invite, null);

    /**
    * modify the created appointment
    */
    ZAppointmentResult result = mailbox.modifyAppointment(appointmentResult.getCal ItemId(), ZFolder.ID_CALENDAR, new ZDateTime(ZimbraClientUtil.toVCalendarFormat(new Date())), outgoingMessage, invite);

    ...


    Please help to solve this problem.

  2. #2
    Join Date
    Jul 2011
    Posts
    4
    Rep Power
    4

    Default I have same problem

    Hello,
    I have same problem.
    Is it solved?

    Boris

  3. #3
    Join Date
    Jul 2011
    Posts
    4
    Rep Power
    4

    Default

    ZAppointmentResult result = mb.modifyTask(appointmentResult.getInviteId(), "0", null, message, invite);

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2009, 05:08 PM
  2. Replies: 0
    Last Post: 10-19-2009, 09:43 AM
  3. ical to create appointment
    By xenophobia in forum Developers
    Replies: 2
    Last Post: 05-11-2009, 12:13 AM
  4. Can't modify appointment via SOAP
    By Abak in forum Developers
    Replies: 6
    Last Post: 01-31-2007, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •