exchangewebservices

EWS Push Subscription using PHP

泄露秘密 提交于 2019-12-24 10:46:46
问题 Does anyone know how to respond to EWS (Exchange Web Services) Push Notifications using PHP. I have initiated the EWS Push Subscription but cannot seem to send the correct SOAP response (in order to keep the subscription alive) when EWS sends my service a SOAP notification. Taken from this page, I was under the impression that my SOAP response should be as follows: <s:Envelope xmlns:s= "http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <SendNotificationResult xmlns="http://schemas

EWS API and ColdFusion: How to reference returned values

こ雲淡風輕ζ 提交于 2019-12-24 08:49:13
问题 I am having difficulty working with complex arrays and could use some help. I am working with the EWS API to integrate mail functions with Exchange 2010 and CF. The code below connects to a mailbox that the primary account has delegated authority to. I want to return a list of messages in the inbox and work with the values that EWS returns (subject line, body, from, to, etc). I have not worked with complex arrays like this before, so I'm confused about how to reference the values returned,

Office 365 Calendar API Using EWS and OAuth 2

非 Y 不嫁゛ 提交于 2019-12-24 07:44:08
问题 Please see edits at the bottom. I'm trying to work with the Office 365 API using EWS (not the managed API) to create/delete/update events on users' calendars. So far, I have successfully used Basic Auth to validate that my SOAP request will work. I'm now trying to replace Basic Auth with OAuth 2. I require the use of the Client Credentials Flow. Here are the steps I followed: Provided admin consent to the application. I launched the following URL in my browser, and provided consent using an

Retrieve out of office Status using EWS 2.0

不羁岁月 提交于 2019-12-24 05:10:49
问题 Is there any way to check Out Of Office status of a person using EWS 2.0 Api. I tried using "OofSettings" class to retrieve the Out Of Office status. It works fine if I check my own out of office status but says Access is denied when I try to pass someone else's email address. Here is the code I used. OofSettings userOOFSettings = service.GetUserOofSettings("sneh.tekriwal@intel.com"); //Now to check out of office status Console.WriteLine(userOOFSettings.State); //Works fine when I check OOO

Appointment.Save and Appointment.Update always set IsMeeting to true

两盒软妹~` 提交于 2019-12-24 03:26:25
问题 I want to create appointments, not meetings: Appointment app = new Appointment(ews); app.Start = DateTime.Now; app.End = DateTime.Now.AddMinutes(60); app.Subject = "My Subject"; app.Save(); string unid = app.Id.UniqueId; // here the unid is given to the client, that may make another call leading to: ItemId iid = new ItemId(unid); app = Appointment.Bind(ews, iid, calendarFullEntryProperties); return app.IsMeeting; // Will return true, although I never added any participants. Why is that? Did I

EWS Managed API Fetch All Email Item Error

◇◆丶佛笑我妖孽 提交于 2019-12-24 02:43:34
问题 My goal is to fetch all emails in a given folder, but I keep getting the Property error: The property Body can't be used in FindItem requests Would you some be kind enough to point out what I am doing wrong. Below is my test code using .NET Framework 4.0 private static void GetEmailMessageCollection(ExchangeService service) { ItemView view = new ItemView(100); view.PropertySet = new PropertySet(PropertySet.FirstClassProperties); view.PropertySet.Add(ItemSchema.HasAttachments); view

Poor response times office 365 REST API

妖精的绣舞 提交于 2019-12-24 01:38:26
问题 I'm using the new office REST APIs in order to access Exchange data, the APIs are behaving as expected however the response times of the requests are hugely variable. Below are the times recorder over 30 requests with a 10 second interval between each (all requests return the same data): I: Polling request time: 33428ms I: Polling request time: 35979ms I: Polling request time: 5247ms I: Polling request time: 28293ms I: Polling request time: 5362ms I: Polling request time: 5556ms I: Polling

How can I mark as read all emails fetched through EWS in a single update?

风格不统一 提交于 2019-12-23 21:24:26
问题 I followed the EWS Managed API example on MSDN to find all unread email in my Exchange mailbox account. I later went through each found item in order to place them in the list I need to return while fetching the body of each message and updating each to IsRead=true as follows: Folder.Bind(Service, WellKnownFolderName.Inbox); SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false)); //ItemView limits the

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

烂漫一生 提交于 2019-12-23 21:15:24
问题 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 contact with all fields exposed in the API, but not the title (or Email1DisplayName). I tried these combinations (no errors, but title remains empty in the created contact when looking at it in Outlook): contact.setExtendedProperty(new

FindItems() and BindToItems() give inconsistent results for EmailMessage.Sender.Address

亡梦爱人 提交于 2019-12-23 20:13:21
问题 After quite a lot of debugging, I've refined a complicated Managed EWS problem down to the following two simple-ish test cases. The first one works, the second one fails: var view = new ItemView(100) { PropertySet = new PropertySet { EmailMessageSchema.Id } }; var findResults = ews.FindItems(WellKnownFolderName.Inbox, view) var bindResults = ews.BindToItems(findResults.Select(r => r.Id), new PropertySet { EmailMessageSchema.Sender }); // Sanity check Assert.AreEqual(1, bindResults.Count()); /