exchangewebservices

EWS API - Create calendar and share with reviewer permissions

守給你的承諾、 提交于 2019-12-07 05:31:38
问题 I'm having some trouble on creating and share a calendar with review permissions using Exchange Webservice API .NET . At the moment this is my code: Folder addCalendar = new Folder(service); addCalendar.DisplayName = name; addCalendar.FolderClass = "IPF.Appointment"; var perm = new FolderPermission(new UserId("reviewer@test.com"), FolderPermissionLevel.Reviewer); addCalendar.Permissions.Add(perm); addCalendar.Save(WellKnownFolderName.MsgFolderRoot); The calendar is created, in my account I

How to authenticate with OAuth to access EWS APIs

梦想与她 提交于 2019-12-07 04:49:45
问题 My web service is currently doing basic username/password authentication in order to subscribe the exchange user for receiving the events (like new mail event etc) like below: var service = new ExchangeService(exchangeVersion) { KeepAlive = true, Url = new Uri("some autodiscovery url"), Credentials = new NetworkCredential(username, password) }; var subscription = service.SubscribeToPushNotifications( new[] { inboxFolderFoldeID }, new Uri("some post back url"), 15, null, EventType.NewMail,

How to authenticate EWS Java API

a 夏天 提交于 2019-12-07 00:36:28
问题 We are using EWS Java API to use the outlook calendar on our Java application. I am having authentication issues on EWS. I tried the application on the cloud outlook account that's supplied by rackspace and everything worked just fine so I know the credentials are accurate. Here is the code: import java.net.URI; import java.net.URISyntaxException; import microsoft.exchange.webservices.data.*; public class TestClass { public static void main(String[] args) { TestClass obj = new TestClass();

HTTP 401 Unauthorized error in sending GetItem Request

喜欢而已 提交于 2019-12-06 22:23:24
I'm using EWS GetItem operation to fetch data from exchange server, but i've got following error Error 401 fault: SOAP-ENV:Server[no subcode] "HTTP Error" Detail: HTTP/1.1 401 Unauthorized However my login credential are correct, since those are works well with findItem request and response, but when GetItem request goes to server it give above error. My credentials are like: soap *pSoap = proxy->soap; proxy->soap_endpoint = "https://outlook.office365.com/ews/exchange.asmx"; pSoap->userid = "abcd@abcd.onmicrosoft.com"; pSoap->passwd = "abcd1234"; And Received log are like HTTP/1.1 200 OK Cache

HTTP 401 Unauthorized error in sending GetItem Request

守給你的承諾、 提交于 2019-12-06 22:21:24
I'm using EWS GetItem operation to fetch data from exchange server, but i've got following error Error 401 fault: SOAP-ENV:Server[no subcode] "HTTP Error" Detail: HTTP/1.1 401 Unauthorized However my login credential are correct, since those are works well with findItem request and response, but when GetItem request goes to server it give above error. My credentials are like: soap *pSoap = proxy->soap; proxy->soap_endpoint = "https://outlook.office365.com/ews/exchange.asmx"; pSoap->userid = "abcd@abcd.onmicrosoft.com"; pSoap->passwd = "abcd1234"; And Received log are like HTTP/1.1 200 OK Cache

How do I send Email with inline Attachments

邮差的信 提交于 2019-12-06 20:55:32
I send the description my team is having with the json integration with Office API 365. We want to send an email with inline attachments through the JSON API. With that objective, what we are doing: Create an empty draft message using reply operation; Send the several inline attachments; Update the body of the draft message (with cid images inline); Send the message; What is our issue with the API? We are unable to set the "ContentType" properties when we submit the attachments to the Office API 365. Despite the "ContentType" we send, it is always null. We are using the following API: POST

Exchange Web Services Managed API: Accessing other users items

£可爱£侵袭症+ 提交于 2019-12-06 19:44:48
问题 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? 回答1: Yes it is possible, but you should know the password of the other user or grab in some ways this credentials ( NetworkCredential object). The typical first lines of you code could be ExchangeService myService = new ExchangeService (ExchangeVersion.Exchange2007_SP1); myService.Credentials = new NetworkCredential ("user

Possible to update an Exchange o365 Online meeting Location to another room with graphapi or graph explorer

最后都变了- 提交于 2019-12-06 19:39:35
I am able to update the meeting event but does not update location to an actual room on Azure Active directory, only updates to text. So say someroom is an meeting room.. we only get "someroom" text location. Is this possible? how Trying this. Also read maybe I need location.AdditonalData , but see no examples anywhere. PATCH : Event_URL Body PAYLOAD : { "subject": "Test Graph 2", "location": { "displayName": "someroom", "locationEmailAddress": "someroom@mydomain.onmicrosoft.com", "address": { "@odata.type": "microsoft.graph.physicalAddress" } } } also tried this: endpoint: https://graph

Why I can't make HttpWebRequest working with NTLM authentication

佐手、 提交于 2019-12-06 16:30:24
I'm trying to call EWS from MonoTouch like in this snippet: byte[] bytes = Encoding.UTF8.GetBytes("... some xml here ..."); HttpWebRequest req = WebRequest.Create("https://owa.site.com/ews/exchange.asmx") as HttpWebRequest; req.Method = "POST"; req.KeepAlive = true; req.ContentType = "text/xml"; req.ContentLength = bytes.Length; req.AuthenticationLevel = AuthenticationLevel.MutualAuthRequested; CredentialCache ch = new CredentialCache(); ch.Add(req.RequestUri, "Negotiate", new NetworkCredential("uname", "pwd", "domain")); req.Credentials = ch; Stream sreq = req.GetRequestStream(); sreq.Write

Kerberos authentication between Java on Linux and Exchange Web Services (EWS)

空扰寡人 提交于 2019-12-06 15:58:52
Is it possible to have a Java process running on linux access EWS using kerberos only without the need of a pre-defined username/password combination? My current system architecture consists of a Java process that accesses EWS using a stored username/password combination. Requirement is to ensure that the credentials under which the Java process runs are authenticated on Exchange using Kerberos. Is it possible to have this setup? You ticket a TGT in the ticket cache or a keytab for that account. yes, it should be possible to authenticate to EWS using Kerberos. You can Java GSSAPI to get the