Results 1 to 2 of 2

Thread: cannot modify appointment

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Rep Power

    Default Cannot modify appointment

    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): 7eec32ea-bf61-4079-b622-67545c076bee:33029
    ExceptionId:com.zimbra.cs.mailbox.MailServiceExcep tion: The specified Invite is out of date (has been updated): 7eec32ea-bf61-4079-b622-67545c076bee:33029
    ExceptionId:btpool0-1954://*/service/soap/ModifyAppointmentRequest:1311611767812:964357f754e a48dc

    My code is so
    package soap;

    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.TimeZone;

    import com.zimbra.cs.zclient.ZDateTime;
    import com.zimbra.cs.zclient.ZInvite;
    import com.zimbra.cs.zclient.ZInvite.ZComponent;
    import com.zimbra.cs.zclient.ZInvite.ZInviteType;
    import com.zimbra.cs.zclient.ZMailbox;
    import com.zimbra.cs.zclient.ZMailbox.Options;
    import com.zimbra.cs.zclient.ZMailbox.ZAppointmentResult;
    import com.zimbra.cs.zclient.ZMailbox.ZOutgoingMessage;
    import com.zimbra.cs.zclient.ZMailbox.ZOutgoingMessage.Me ssagePart;
    public class ZimbraAppointment {
    private static final String FMT_DATE_TIME = "yyyyMMdd'T'HHmmss";
    public static void main(String[] args) {
    try {
    Options opt = new ZMailbox.Options();
    ZMailbox mb = ZMailbox.getMailbox(opt);
    TimeZone tz = TimeZone.getDefault();
    ZInvite invite = new ZInvite();
    ZComponent comp = new ZComponent();
    comp.setStart(new ZDateTime("20110726T170000", tz.getID()));
    comp.setEnd(new ZDateTime("20110726T210000", tz.getID()));
    ZOutgoingMessage message = new ZOutgoingMessage();
    message.setSubject("test zclient API");
    message.setMessagePart(new MessagePart("text/plain", "this is da body"));
    DateFormat dateFmt = new SimpleDateFormat(FMT_DATE_TIME);
    String dateTime =dateFmt.format(new Date());
    ZAppointmentResult appointmentResult = mb.createAppointment(mb.getCalendar().getId(),null , message, invite,null);
    ZAppointmentResult result = mb.modifyAppointment(appointmentResult.getCalItemI d(), "0", new ZDateTime(dateTime,tz.getID()), message, invite);
    } catch(Exception e) {

    Please help me.
    Last edited by b_roit; 07-26-2011 at 08:25 AM. Reason: SOLVED

  2. #2
    Join Date
    Jul 2011
    Rep Power

    Default solved!!!!

    yes! it's solved!!!

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

Similar Threads

  1. Replies: 0
    Last Post: 06-02-2011, 07:44 AM
  2. Automated appointment reminder?
    By ambush276 in forum Zimlets
    Replies: 4
    Last Post: 05-03-2011, 07:51 AM
  3. Replies: 1
    Last Post: 04-19-2011, 01:27 PM
  4. Cancel And Modify Appointments SOAP Question
    By noleman16 in forum Developers
    Replies: 2
    Last Post: 01-11-2008, 10:18 AM
  5. Can't modify appointment via SOAP
    By Abak in forum Developers
    Replies: 6
    Last Post: 01-31-2007, 07: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