Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebDAV for Exchange
>
Tutorial
> Send meeting update
The following example shows you how to send meeting update.
import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import com.independentsoft.webdav.exchange.Appointment; import com.independentsoft.webdav.exchange.WebdavClient; import com.independentsoft.webdav.exchange.WebdavException; public class Example { public static void main(final String[] args) { try { WebdavClient client = new WebdavClient("https://myserver/exchange/emailaddress", "username", "password"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date startDate = dateFormat.parse("2024-03-24 17:00:00"); Date endDate = dateFormat.parse("2024-03-24 19:00:00"); Appointment appointment1 = client.getAppointment("https://myserver/exchange/emailaddress/Calendar/Test-1263467739892.eml"); appointment1.setStartDate(startDate); appointment1.setEndDate(endDate); client.sendMeetingRequest(appointment1, true); } catch (WebdavException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (ParseException e) { e.printStackTrace(); } } }