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 Services (EWS) or JavaMail Api to connect to Outlook Exchange Server - Java

we are switching from Lotus notes to Outlook 2013 and I'm working on a POC to connect to the Microsoft Exchange. I'm confused on which API to use to connect. Requirement:Basically I need to write Java Application to read inbox and get attachments…
Lucky
  • 783
  • 2
  • 10
  • 28
1
vote
1 answer

How to get attachment by id using EWS Managed API?

Is it possible to get attachment with EWS Managed API directly, without getting its containing EmailMessage first? Something like: FileAttachment attach = FileAttachment.Bind(ewsService, attachId); I couldn't find any method for this.
Alex
  • 2,469
  • 3
  • 28
  • 61
1
vote
1 answer

How to exclude the drafts folder when creating a search folder?

Using the query below, I created a search folder under the root folder. It works, but it also includes emails from the drafts folder. Is there a straightforward way to exclude the drafts folder when creating this search folder?
Rayhan Muktader
  • 2,038
  • 2
  • 15
  • 32
1
vote
0 answers

How to efficiently retrieve an Appoinment Ocurrence's index in EWS

Appointment.BindToOcurrence takes the following arguments: service, ItemId, and Index. However, there doesn't seem to be an efficient way to get said index, given an occurrence, without looping over every single item in the series. If I want to…
synic
  • 26,359
  • 20
  • 111
  • 149
1
vote
1 answer

cxf-codegen-plugin failed while parsing wsdl (JSXB: undefined attribute 'xml:lang')

I try to generate java code from wsdl for Exchange Web Service. I use apache cxf-codegen-plugin configured as:
1
vote
1 answer

Office365 Exchange and Exchange 2010 give different responses to the same getEvent operation

I have Exchange on Office365 and a local Exchange 2010 both of which I use for EWS communication. When I issue request to the Exchange on Office365 I get back a response in a certain format, this format differs from the content I get back from the…
eomeroff
  • 9,599
  • 30
  • 97
  • 138
1
vote
1 answer

Alternate ways of connecting to EWS on Android

Where I work they want to make an app to display meetings scheduled on exchange on tablets outside of the meeting rooms. I have been tasked with making the app, and with no experience developing for android, I feel a bit lost. So far, I have tried…
Jedi_Maseter_Sam
  • 753
  • 4
  • 24
1
vote
0 answers

EWS emails have base64 img tags encoded

Background context: I'm using EWS Managed API 2.0 to connect to customer Outlook mailbox and process their emails into my application. I do not have control over what kind of emails the customers send, however part of the processing is maintaining…
Denisa.B
  • 11
  • 1
  • 4
1
vote
0 answers

EWS Appointment server change timestamp

I'm working on buffer solution for MS Exchange server. The buffer should store events and keep them in sync with Exchange server. I code in C# and use Managed EWS. The buffer queries Exchange for appointments changed in sequential intervals: (t[1],…
Anton Maiorov
  • 181
  • 13
1
vote
1 answer

ExchangeService object for push notification and binding of notification(EWS application)

Would it be ok if I used two different ExchangeService objects to subscribe to push notifications and bind the itemId's received in the notifications from the server for the subscription respectively in the EWS application?
1
vote
1 answer

EWS Managed API: SendOnlyToChanged when changing attendee from Required to Optional

Scenario is this: create appointment with 1 required attendee and save it -> attendee gets invitation var app = new Appointment(service); app.Subject =…
grapkulec
  • 1,022
  • 13
  • 28
1
vote
2 answers

Unable to call EWS when require ssl is true

I have Exchange server 2010 installed in development environment. I am trying to call EWS services form node js web application which is also in dev environment. When i set require ssl on EWS web site on IIS manager, I get 403 error. Which it normal…
eomeroff
  • 9,599
  • 30
  • 97
  • 138
1
vote
1 answer

Subscribe push notification using ews

I tried to subscribe push notification for calendar event using ews soap request. But unfortunately it failed Error: The request failed schema validation: Could not find schema information for the element 'Subscribe'. I follow the link :…
Julkar Nain
  • 41
  • 1
  • 5
1
vote
1 answer

EWS soap request with Chinese content cannot be handled correctly by Exchange server

all: I want to send creating calendar item operation request using EWS, and some of my content, for instance, Subject, may content Chinese characters. Here is what my request soap looks like
ericchan1336
  • 695
  • 1
  • 10
  • 21
1
vote
1 answer

EWS returns "Custom Time Zone" - how to store it in SQL?

When using the EWS GetUserAvailability() function, I get in the AttendeesAvailability[i] object a WorkingHours object containing a Start, an End, the WeekDays, and a TimeZoneInfo object. For me, the TimeZoneInfo object always has the name Custom…
Alexander
  • 19,906
  • 19
  • 75
  • 162