Questions tagged [exchangewebservices]

Exchange Web Services (EWS) is an extensibility point for clients that connect to the Exchange server and consume information about user availability, and the manipulation of items that are located in the Exchange data store.

Welcome to the EWS tag on StackOverflow!!! Use this tag to find answers, ask questions, and answer questions about the Exchange Web Services (EWS) and the Autodiscover web services provided by Exchange Server and Exchange Online. To help you create higher quality and more consistent posts, here is some guidance on how to title and flesh out the post body so that the community can more easily answer your questions:

Post Title

The post title is the first thing a reader will see. To give the reader an idea about what the post will contain, we suggest you use the following format:

Exchange Version - Programming Language - Client platform: Information you seek

Here are a couple of example titles:

  • E2013 - Java - Android KitKat: How do I upload more than one contact?
  • EXO - C# - Windows 8.1: Can I use the EWS Managed API with a Windows Store App?

Post Body

The post body should provide as much background information as possible to help the other contributors answer your questions. The following list identifies information you should consider providing when creating your post (of course, do not post sensitive information like account names, passwords, machine names, etc):

  • Exchange Version: Exchange version and service pack. Include build and version numbers if available. You can get the build and version from the XML response.
  • Client API version: Provide the client API version, if applicable.
  • IDE: The development tools you are using if they are applicable to answering your question.
  • Targeted features: Identify which features are involved in your question.
  • Code examples: Provide both the client code, and for debugging purposes, the XML request and response sent and received by the client. You can use applications like Fiddler or NetMon to capture the request/response XML. If you are using the EWS Managed API, you can provide an XML trace, here's how.
  • Scenario description: Describe the scenario that results in you posting a question to this forum. More information is better.

Here are some considerations for describing your scenario:

  • Give a thorough description of what you are trying to do and how you are attempting to do it. Provide the steps you have already attempted.
  • Identify resources you've tried to use (include links)
  • Identify the target platforms
  • Provide a code example that describes the problem (as long as it does not reveal sensitive information.)
  • Give a description of the environment for client and server hardware and software. Firewalls, proxy, trusts, security models, system architecture and other environmental factors can have programmability implications.
  • Provide error codes and exceptions; identify the specific part of the code that threw an exception. Provide stack traces if applicable.
  • Provide log entries and traces as long as they do not reveal sensitive information. Delete sensitive information.
  • Provide performance counter information from the Exchange Server.
  • List the specific questions that you want answered.
  • Don't assume that the reader knows all the background information. The more information that you provide, the better/quicker answer you will receive. It is easy to skip content that is understood; that is much better than leaving out information.

Mark answers

This forum has mechanisms for marking and qualifying answers as useful. When a question has been successfully answered, please mark the answer as useful so that readers can easily scan posts for the answer.

4045 questions
1
vote
1 answer

Exchange Web Service API really slow but only if called from WPF application

I am trying to build a WPF application that queries our Exchange 2010 SP2 using the Exchange Web Services API. However, I'm finding that if I use the Exchange API from a WPF application, the calls to the API are really, really slow. In fact they are…
Pep
  • 1,957
  • 2
  • 24
  • 40
1
vote
1 answer

Is it possible to access and set an emails Information Rights Management using EWS when creating a new email?

I need to create a new email with permission set to "Do Not Forward" using EWS. But I cant find permission property for the message object. What should I do?
abhishek khandait
  • 1,990
  • 2
  • 15
  • 18
1
vote
1 answer

How to modify, add ,avoid throttling policies limitation in Outlook office 365 online

I am trying to synchronize my application's calendar with user's outlook calendar. I subscribe each user's credentials with exchange server using exchange push subscriptions. End users use both on premises (Exchange 2010 ) and Outlook office 365…
1
vote
2 answers

What format is Microsoft GraphApi ICalUid in?

Doing some work with the Microsoft GraphAPI and the CalendarView. For fun I created an event through Google and invited my Office365 account to ensure the ICalUid between the two were the same. If I use the EWS service the ICalUid matches the…
Dan D
  • 2,493
  • 15
  • 23
1
vote
1 answer

Querying Exchange Web Service gives Bad Request (400) with WildFly and Apache CXF

I have a problem while querying the Microsoft Exchange Server WebServices to get Items in certain folders. In this order, I can make a request to the method expandDL and to the method findFolders. These work fine. But when I then make a request to…
jmizv
  • 1,172
  • 2
  • 11
  • 28
1
vote
1 answer

EWS Impersonation Error "The e-mail address that was supplied isn't valid." Although It Is

Exchange 2010 (SP3) Impersonation is properly configured, according to the sys admin. The issue seems to be with code: private static ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); //service.Credentials = new…
Miha
  • 303
  • 3
  • 19
1
vote
1 answer

Programmatically get EWS accesstoken

I have a working EWS connection, but at the moment I have to fill in my username and password everytime that I stop the app. Eventually alot of different users will use the application. Is there a way to programmatically get an accesstoken which I…
Arnout
  • 157
  • 1
  • 13
1
vote
2 answers

PHP-EWS: UploadItem using PHP for .EML-Files

*, I want to upload daily some .EML-Files to my Exchange Server 2013. So I found from Google a PHP class from James Iarmes calles PHP-EWS. https://github.com/jamesiarmes/php-ews I tried some examples and I think, this class is good for me. There is…
AHF oliPro
  • 11
  • 1
1
vote
1 answer

Timeout thrown when using ExchangeService StreamingSubscription in a thread

We are using EWS Managed API 2.2 to detect when new messages are received in multiple email account hosted in Office365. We've adapted this sample program. Using Streaming Notifications with Exchange 2010 Basically this windows command line…
mbalsam
  • 611
  • 1
  • 6
  • 16
1
vote
1 answer

Listing all current events using EWS Managed API

Our organization has an Exchange server, where each employee has a calendar. We want to make an application showing a list with the current event for every user. Is this possible using the EWS Managed API? We also want to add a special icon…
1
vote
1 answer

Exchange 2010 - How to access the archived content using API

These days I am investigating whether we can access the archived content present in Exchange 2010 using Web Services or server side API. I need to build a connector against Exchange 2010 and retrieve all the content withing Exchnage 2010. Is this…
CarolK
  • 11
  • 3
1
vote
1 answer

Does EWS connection supports TLS 1.2

I am not an expert on EWS or TLS 1.2. And I am not sure on how to investigate on this issue. Basically, I have client application that is heavily using EWS, in a form of pulling data from Exchange server and receiving notifications on subscribed…
eomeroff
  • 9,599
  • 30
  • 97
  • 138
1
vote
0 answers

Office 365 password encrypting in MySQL DB

I am working on a mobile app (android, ios). Users login in the mobile app by entering email and password of office 365 and authentication is done through php-ews (exchange web services for office 365). We will be using few calendar and email…
PraNav
  • 11
  • 2
1
vote
1 answer

C# and Exchange Web Service using a service account-Error

I am trying to access the inbox of a "Notification" email address using a service account. This service account has the same access permissions as my account, but does not have its own email address, it is simply a service account. When I use my…
Sean S
  • 15
  • 7
1
vote
0 answers

Exchange Web Service (EWS) FindItems does not find emails by HTML body in SearchFolder

I'm using SearchFolder to do a deep traversal search on an EWS connected to Office365. The problem is that I don't get all the matching email results when using FindItems for this folder. I don't get emails with HTML body that contains "text" (for…
vangog
  • 61
  • 1
  • 8