Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebServices for Exchange
>
Tutorial
> Get calendar options
The following example shows you how to get OWA calendar options.
import com.independentsoft.exchange.CalendarOptions; import com.independentsoft.exchange.RequestServerVersion; import com.independentsoft.exchange.Service; import com.independentsoft.exchange.ServiceException; public class Example { public static void main(String[] args) { try { Service service = new Service("https://myserver/ews/Exchange.asmx", "username", "password"); service.setRequestServerVersion(RequestServerVersion.EXCHANGE_2010_SP1); CalendarOptions options = service.getCalendarOptions(); if(options != null) { System.out.println("AutoProcess:" + options.isAutoProcess()); System.out.println("AutoProcessExternal:" + options.isAutoProcessExternal()); System.out.println("AutoProcessNewItems:" + options.isAutoProcessNewItems()); System.out.println("DeleteUpdatedItems:" + options.isDeleteUpdatedItems()); System.out.println("ReminderDefault:" + options.getReminderDefault()); System.out.println("ReminderUpgradeTime:" + options.getReminderUpgradeTime()); System.out.println("RemoveForwardedMeetingNotifications:" + options.isRemoveForwardedMeetingNotifications()); } } catch (ServiceException e) { System.out.println(e.getMessage()); System.out.println(e.getXmlMessage()); e.printStackTrace(); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*