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
2
votes
3 answers

microsoft.exchange.webservices.data.EWSHttpException: Connection not established

i am trying to use EWSJavaAPI 1.2 to send email from exchange server 2007 email as follows: String email="myuser@mydomain"; String password="mypass"; String host="myhost"; ExchangeService service = new…
2
votes
2 answers

Printing the body of a message

I am trying to make a program that will neatly print all the bodies of the messages of my inbox yet exchange web services is making it difficult. I seem to have easy access to everything except the body of the message. This is what I'm doing right…
mgild
  • 774
  • 6
  • 13
2
votes
1 answer

Java EWS throws NoClassDefFound

I want to read the Outlook calendar. So I'm started first to try to connect to the server. I found http://code.msdn.microsoft.com/exchange-ews-java-api-12-1a5a1143 and want just to get the connect and try around. I found a example and tried…
2
votes
1 answer

How to edit contact notes

I am using EWS Java API with Exchange Online (Office 365) and I would like to edit contact notes. The problem I encounter is that there is no setter for a contact notes in this API. The contract is to bind a contact from its unique ID, set its…
2
votes
1 answer

How to get the mimetype of an item?

I need to get the MimeType of an item object: What I've got: - Item object (microsoft.exchange.webservices.data.Item) from the EWS What I want: - The mimetype of this Item(e.g. String "text/plain") Is there even a mimetype in exchange? (I am using…
int lawl is over 9000
  • 977
  • 1
  • 15
  • 25
2
votes
2 answers

Can't connect to (EWS) Public Calendar Folder Java

I have created a public calendar folder, but none of the users see it. It should be shared with others. This is my code: FolderView fv = new FolderView(50); fv.setTraversal(FolderTraversal.Deep); FindFoldersResults f =…
Marcis
  • 71
  • 6
2
votes
1 answer

How to set the contact title using the EWS Java API (Exchange Web Service)?

I would like to achieve the exact same thing as asked in this question, but in java: How to set the contact title using Exchange Web Services Managed API I am using the EWS Java API 1.2 (http://archive.msdn.microsoft.com/ewsjavaapi). I can create a…
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
2
votes
1 answer

Send string content with special characters in email using EWS Java API

I tried to send the 'String' content in email using EWS Java API: text1 text2 The code I used is: String msg = content given above; ExchangeService service = new ExchangeService(); ExchangeCredentials…
user1551550
  • 97
  • 1
  • 11
2
votes
1 answer

Set authentication to Basic in EWS Java API code to send mails

I tried to use the following code to send mail using EWS Java API. But I get the error that the NTLM Authentication is selected. I need only Basic Authentication. How do I specify the authentication type. ExchangeCredentials credentials = new…
2
votes
2 answers

Issues with Java EWS API

I am using Java EWS API in my web application to connect my application to MS Exchange and read user email requests. Also I am using a scheduler to pull subscription every 1 minute. Problem is when I start my application, EWS-API works fine. It…
2
votes
0 answers

Random connection errors between EWS Java API 1.1 and https://podxxxxx.outlook.com/ews/Exchange.asmx

I am sending email using connection setup as in subject. I have to send attachments. Code works but I am getting two errors at random times: [java] INFO: Failure authenticating with BASIC ''@podxxxxx.outlook.com:443 [java] Error occured while…
zezuha
  • 21
  • 6
1
vote
0 answers

Setting a folder type with Exchange Web Service API

I am trying to create global folders in a Exchange 2010 server that are to be used by the users. If I am right I have to set a specific folder type (in my case contacts)so that the users are able to save contacts in these folders. For this, I am…
1
vote
1 answer

Missing class in Maven project using Exchange web services

I've installed the following maven module to my local maven repository EWS Maven Module but the IDE (Eclipse in this case) doesn't seem to know about the following class `GetUserAvailabilityRequest. Interestingly, I can run a mvn compile on my…
Phanindra
  • 363
  • 1
  • 4
  • 9
1
vote
1 answer

Exchange Web Services Java API - Searching mailboxes returns the old result and doesn't retrieve the latest search results

Am using ews-java-api to connect exchange mail box and search the text "ABCD" which is the subject of the email i have used the code similar to the one in…
1
vote
0 answers

Parse html table as plain text with ews-java-api

I fetch emails from the Exchange Server with the ews-java-api. As I do not want to deal with html I parse the body to text using the ews functionality PropertySet propertySet = new PropertySet(BasePropertySet.FirstClassProperties) …
pstack
  • 11
  • 2
1 2
3
10 11