appointment.save(), but not able to get recurring information of the event created in OWA interface, I get following error during the bind:
===================================
Exception: Connection not established
microsoft.exchange.webservices.data.EWSHttpException: Connection not established
at microsoft.exchange.webservices.data.HttpClientWebRequest.throwIfConnIsNull(HttpClientWebRequest.java:394)
at microsoft.exchange.webservices.data.HttpClientWebRequest.getResponseHeaders(HttpClientWebRequest.java:280)
at microsoft.exchange.webservices.data.ExchangeServiceBase.processHttpResponseHeaders(ExchangeServiceBase.java:1045)
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:58)
at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:144)
at microsoft.exchange.webservices.data.ExchangeService.internalBindToItems(ExchangeService.java:1364)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1407)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1430)
at microsoft.exchange.webservices.data.Appointment.bind(Appointment.java:70)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:176)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:152)
============================
This happens if I use: Appointment.bindToRecurringMaster or Item.bind(service, id, appointmentProps) or findAppointments().
Works fine for events which doesn't have recurring. Only issue with events containing recurrence created through OWA. These are the propertySet:
new PropertySet(BasePropertySet.IdOnly,
ItemSchema.Subject,
AppointmentSchema.AppointmentType,
AppointmentSchema.DeletedOccurrences,
AppointmentSchema.FirstOccurrence,
AppointmentSchema.LastOccurrence,
AppointmentSchema.IsRecurring,
AppointmentSchema.Location,
AppointmentSchema.ModifiedOccurrences,
AppointmentSchema.OriginalStart,
AppointmentSchema.Recurrence,
AppointmentSchema.Start,
AppointmentSchema.End);
If I remove Recurrence it gives the response.
Thanks.