Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Problem getting calendar event with recurring using EWS Java client API 1.2

$
0
0
I am using EWS 1.2 Java client API for getting calendar events. I am able to get Recurring information of the event which is created through API's 

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.


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>