Questions tagged [ewsjavaapi]

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

153 questions
23
votes
1 answer

Exchange Web Services (EWS) Single Sign-On using TokenCredentials?

I'm working with the EWS Java API 1.2 in an Android application. Logging in with username/password WebCredentials is working fine using something like this: ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new…
17
votes
1 answer

EWS Java API: The meeting request is out of date. The calendar couldn't be updated

I am using the Microsoft EWS Java API to create and accept appointments on behalf of some users. The way I am doing this is by sending the meeting request and then setting up inbox watchers on the recipient's inbox and accepting the incoming…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
11
votes
2 answers

Can't get sender email address with EWS Java API

I am using EWS Java API 1.1.5. I am trying to get the email sender as follows: ItemView view = new ItemView(10); FindItemsResults findResults = service.findItems( WellKnownFolderName.Inbox, view); for (Item item :…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
10
votes
3 answers

Problems using the EWS Java API on Android

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…
9
votes
5 answers

Download attachments using Exchange Web Services Java API?

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…
NareshPS
  • 103
  • 1
  • 1
  • 4
9
votes
1 answer

java.security.cert.CertificateExpiredException: NotAfter

I am using EWSJavaAPI 1.1.5 to connect to Exchange Server 2010. Everything was working fine until today while trying to connect to the server, I am getting the following exception: microsoft.exchange.webservices.data.ServiceRequestException: The…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
8
votes
1 answer

ews java api - How to set permission/classification (public/restricted/internal) to Email message

I am drafting email in custom folder. EmailMessage msg= new EmailMessage(service); msg.setSubject("Hello world!"); msg.setBody(MessageBody.getMessageBodyFromText("Draft email using the EWS Java…
StackOverFlow
  • 4,486
  • 12
  • 52
  • 87
8
votes
1 answer

How to authenticate EWS Java API

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…
leventgo
  • 109
  • 1
  • 1
  • 5
7
votes
1 answer

subscribeToPullNotifications doesn't detect new emails in inbox

i am trying to detect new emails in inbox using subscribeToPullNotifications as follows: PullSubscription subscription = service.subscribeToPullNotifications( folder, 1, null, EventType.NewMail); GetEventsResults events =…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
6
votes
0 answers

401 Unauthorized after NTLM authentication error: Unexpected state: MSG_TYPE1_GENERATED

I would like to know what the error messages MSG_TYPE1_GENERATED and MSG_TYPE3_GENERATED (from httpClient/NTLMScheme.State enum) signify to help debug an issue we are having. Can someone please provide the documentation for these errors? I have a…
6
votes
1 answer

Exchange Web Service find EmailMessage by "Message-ID" header

I'm using the Java EWS library and try to reply to some messages. The main question is - how to find EmailMessage in folder or in mailbox if I only know value of "Message-ID" header of my message. I try to do something like…
user2621486
  • 99
  • 1
  • 6
5
votes
1 answer

How to search for an Exchange appointment for an iCalUid using Java EWS API?

I am using the Java EWS library to search for appointments in a user's calendar by iCalUid (example iCalUid I have: 040000008200E00074C5B7101A82E00800000000F66E2C0D59A9D001000000000000000010000000F7A6AACB779B00429164F39AE6DD6BB9). Here is my Scala…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
5
votes
4 answers

Maven Ropository for EWSJavaAPI_1.2.jar

I work on a project where I use the EWS Java Api to connect to an MS Exchange Server. To resolve my dependencies I use Maven. My Problem is that I have to connect to an Exchange Server 2010 SP2 which requires the EWSJavaAPI_1.2.jar but I only found…
klange
  • 3,465
  • 3
  • 16
  • 16
5
votes
2 answers

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

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…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
5
votes
1 answer

getting nullPointerException with commons-httpclient and EWSJavaAPI

i am using EWS Java API 1.1.5 and i am trying to bind the service to inbox folder as follows: ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials(email, password); …
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
1
2 3
10 11