ewsjavaapi

How to use LDAP authentication for the Exchange Web Services connection in Java?

一笑奈何 提交于 2019-12-07 05:37:24
问题 I try to write a Java application that access an Exchange Web Services in order to read emails. Thus, I use the Exchange Web Services ( EWS ) Java API provided by Microsoft. I already had several issues with it, and I finally found that the authentication should be done using LDAP. Unfortunately, I'm not sure how to do such a thing. Does the EWS API allows to configure the authentication scheme to be used when connecting to the Exchange server ? If yes, how to configure that? This is the code

How to authenticate EWS Java API

a 夏天 提交于 2019-12-07 00:36:28
问题 We are using EWS Java API to use the outlook calendar on our Java application. I am having authentication issues on EWS. I tried the application on the cloud outlook account that's supplied by rackspace and everything worked just fine so I know the credentials are accurate. Here is the code: import java.net.URI; import java.net.URISyntaxException; import microsoft.exchange.webservices.data.*; public class TestClass { public static void main(String[] args) { TestClass obj = new TestClass();

Download attachments using Exchange Web Services Java API?

こ雲淡風輕ζ 提交于 2019-12-05 05:56:57
I am writing a Java application to download emails using Exchange Web Services. I am using Microsoft's ewsjava API for doing this. I am able to fetch email headers. But, I am not able to download email attachments using this API. Below is the code snippet. FolderId folderId = new FolderId(WellKnownFolderName.Inbox, "mailbox@example.com"); findResults = service.findItems(folderId, view); for(Item item : findResults.getItems()) { if (item.getHasAttachments()) { AttachmentCollection attachmentsCol = item.getAttachments(); System.out.println(attachmentsCol.getCount()); // This is printing zero all

How to authenticate EWS Java API

馋奶兔 提交于 2019-12-05 03:19:10
We are using EWS Java API to use the outlook calendar on our Java application. I am having authentication issues on EWS. I tried the application on the cloud outlook account that's supplied by rackspace and everything worked just fine so I know the credentials are accurate. Here is the code: import java.net.URI; import java.net.URISyntaxException; import microsoft.exchange.webservices.data.*; public class TestClass { public static void main(String[] args) { TestClass obj = new TestClass(); obj.testMethod(); } public void testMethod() { ExchangeService service = new ExchangeService(

Exchange Web Services get Message Message-ID

纵饮孤独 提交于 2019-12-04 05:21:52
问题 I'm using the Java EWS library to try to sync messages from an Exchange mailbox. I'm able to get a list off all new messages created since the last sync date, however, I would really like to find out the Message-ID property of the message before loading it from exchange. Background: I'm trying to integrate EWS sync into an existing mail storage system. The Message-ID identification is solely for performance reasons, as our system already has millions of messaged processed outside of EWS.

Exchange Web Services get Message Message-ID

烈酒焚心 提交于 2019-12-02 07:16:32
I'm using the Java EWS library to try to sync messages from an Exchange mailbox. I'm able to get a list off all new messages created since the last sync date, however, I would really like to find out the Message-ID property of the message before loading it from exchange. Background: I'm trying to integrate EWS sync into an existing mail storage system. The Message-ID identification is solely for performance reasons, as our system already has millions of messaged processed outside of EWS. Having to download them again would cause major performance overhead. //Sample code to fetch the message

Problems using the EWS Java API on Android

风流意气都作罢 提交于 2019-11-30 14:02:57
问题 I am trying to use the EWS Java API v1.1.5 (http://archive.msdn.microsoft.com/ewsjavaapi) in an Android application, and have run into a number of issues. I downloaded the source, and followed the instructions provided to compile the EWS Java API in Eclipse. In those instructions you are told to download and add the following pre-requiste jar file dependencies: commons-codec-1.4.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar jcifs-1.3.15.jar I did this, and followed the build

Problems using the EWS Java API on Android

南楼画角 提交于 2019-11-30 09:12:14
I am trying to use the EWS Java API v1.1.5 (http://archive.msdn.microsoft.com/ewsjavaapi) in an Android application, and have run into a number of issues. I downloaded the source, and followed the instructions provided to compile the EWS Java API in Eclipse. In those instructions you are told to download and add the following pre-requiste jar file dependencies: commons-codec-1.4.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar jcifs-1.3.15.jar I did this, and followed the build instructions with produced the following jar files: EWSAPI-1.1.0.jar EWSAPIWithJars-1.1.0 Next, I built a

Exchange Web Services Java APi + RESTful Push Notifications Listener

廉价感情. 提交于 2019-11-29 08:39:35
i'm trying to make my listener work with the ews java API but i can't.. I hope you can help me ! I've done the following steps: 1)Connect to the exchange web service ExchangeService newService = new ExchangeService(ExchangeVersion.Exchange2010_SP2); newService.setUrl("https://myurl/ews/Exchange.asmx"); ExchangeCredentials credentials = new WebCredentials("user","password"); newService.setCredentials(credentials); 2) Then subscribe to the push notifications: @Override public PushSubscription subscribeToPushNotifications(){ URI callback = null; PushSubscription pushSubscription = null; try{

Exchange Web Services Java APi + RESTful Push Notifications Listener

删除回忆录丶 提交于 2019-11-28 02:07:17
问题 i'm trying to make my listener work with the ews java API but i can't.. I hope you can help me ! I've done the following steps: 1)Connect to the exchange web service ExchangeService newService = new ExchangeService(ExchangeVersion.Exchange2010_SP2); newService.setUrl("https://myurl/ews/Exchange.asmx"); ExchangeCredentials credentials = new WebCredentials("user","password"); newService.setCredentials(credentials); 2) Then subscribe to the push notifications: @Override public PushSubscription