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
11
votes
1 answer

Using vcr to stub ViewPoint gem returns Unauthorize response from ews API

I am stubbing all requests that go through the ViewPoint gem. Using the vcr gem. require 'spec_helper' require 'vcr' describe CalendarImporters::Ews::Get do let(:conf_connection) { FactoryGirl.create(:conf_connection)} let(:calendar) {…
DickieBoy
  • 4,886
  • 1
  • 28
  • 47
11
votes
1 answer

Get the organizer's calendar appointment using EWS for Exchange 2010

I have an synchronization application with sync appointments with Exchange 2010, and i have some questions. UserA creates an appointment and add UserB as attendee, this means UserA is the organizer of the appointment and UserB outlook calendar will…
ahlun
  • 458
  • 1
  • 6
  • 17
11
votes
3 answers

Exchange Web Services Managed API: Accessing other users items

Is it possibly to access the folders and items of other Exchange accounts other than the one of the logged in user? Can I do this via Exchange Web Services Managed API?
Luke
  • 5,771
  • 12
  • 55
  • 77
11
votes
1 answer

What is the differences between Office 365 APIs and EWS

What are the differences between Office 365 APIs and EWS (Exchange Web Services) ? When do I use one or another?
dowi
  • 1,005
  • 15
  • 30
11
votes
2 answers

EWS Exchange Web service API AutodiscoverUrl exception

I get an error when I try to create an appointment: The expected XML node type was XmlDeclaration, but the actual type is Element. This Exception occurs when I call AutodiscoverUrl. I created a web service to do…
11
votes
2 answers

Is there a way to determine if a email is a reply/response using ews c#?

I am writing a support system and this is my first time using EWS. Thus far I have been quite successful with it. I can extract the info I need. Send emaisl and everything is working great. I do have one small headache. Is there a way to tell if an…
KapteinMarshall
  • 490
  • 6
  • 20
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
11
votes
1 answer

Removing EWS Appointment Body Text

EWS creates appointment with a default "When" text in the body. Please see the image below: I am wondering if it is possible to remove or hide this text some how. Here is my code which create appointment using EWS Managed API ExchangeService…
Firoz Ansari
  • 2,505
  • 1
  • 23
  • 36
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…
10
votes
1 answer

How to download unread email attachment using Exchange web service in ASP.NET?

I am using Exchange Server 2007 SP3 and I am able to connect exchange web service using following code ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.RequestServerVersionValue = new…
10
votes
1 answer

Handling illegal XML values while reading emails with EWS

We have an application that uses a StreamingSubscriptionConnection to read every email that gets sent to a particular mailbox. The issue I'm running into several times a day during development I get the exception {"'{square character}', hexadecimal…
gcso
  • 2,315
  • 3
  • 28
  • 50
10
votes
3 answers

Increasing the Lifetime element for EWS Streaming Subscription Connection

Using Microsoft's EWS, we're able to listen to a mailbox and take actions when a new email comes in. However, I can't figure out how to avoid the connection timing out. Per Microsoft, here is the constructor for a…
WEFX
  • 8,298
  • 8
  • 66
  • 102
10
votes
2 answers

Graph API fails for Archive mailboxes

I've been using the Microsoft Graph API to access Exchange Online (Office365) In-Place Archives. It's basically an authenticated GET HTTPS request against…
user124114
  • 8,372
  • 11
  • 41
  • 63
10
votes
5 answers

Download attachment from Exchange using Exchange Web Services

I am trying to use the following code to connect and download an attachment from email in an inbox using C# and Exchange Web Services but I am getting a 'System.ArgumentOutOfRangeException' error and I cant see why. I have googled for an answer but…
Jimbo James
  • 727
  • 2
  • 9
  • 17
10
votes
2 answers

Exchange Web Services - Send email with attachment

I'm new to using EWS (Exchange Web Service) and I'm looking for a simple example that demonstrates how to send an email with an attachment. I've searched for an example and I can't find any that are simple and clear-cut. I've found examples about…
Anthony
  • 734
  • 3
  • 9
  • 22