exchangewebservices

php-ews class library always returns null

半世苍凉 提交于 2019-12-08 07:39:23
问题 I am trying to make SOAP calls to our Exchange server using the classes I found here: http://code.google.com/p/php-ews/ I have coded up a few examples, starting with the basic example as below and no matter what I try and do this always returns null. $ews = new ExchangeWebServices('exchange.example.com', 'user', 'password'); $request = new EWSType_FindFolderType(); $request->Traversal = EWSType_FolderQueryTraversalType::SHALLOW; $request->FolderShape = new EWSType_FolderResponseShapeType();

How to connect Exchange Web Services via java web service client?

旧时模样 提交于 2019-12-08 07:10:58
问题 I am using JWebService framework to connect my Exchange Server 2007. As it is a paid version, I am looking for some open source like JWebService. Can anyone suggest a good alternative Java API that is free? Thanks in advance! 回答1: You can have a look at http://archive.msdn.microsoft.com/ewsjavaapi and http://sourceforge.net/projects/j-xchange/ 来源: https://stackoverflow.com/questions/7425990/how-to-connect-exchange-web-services-via-java-web-service-client

How do I send Email with inline Attachments

喜欢而已 提交于 2019-12-08 05:52:19
问题 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

EWS error message: “403: Forbidden - Not enough scopes”

蓝咒 提交于 2019-12-08 05:33:58
问题 Last week I made a question in here about EWS, where I got the error message saying: 401: Unauthorized - Invalid access token I managed to resolve this error by using an X.509 certificate instead of client credentials (client id abnd client secret from AAD). Now, with the use of the certificate, I receive a new error message saying: 403: Forbidden - not enough scopes I believe this has something to do with the permissions in AAD? I permissions are as follow (only one permission): Application

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

夙愿已清 提交于 2019-12-08 05:18:46
问题 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? 回答1: You ticket a TGT in the ticket cache or a keytab for that

Get all appointments of all users or get all appointments of one room

♀尐吖头ヾ 提交于 2019-12-08 04:30:06
问题 I would like to get all appointments giving a specific date peroid. I check the API, it seems only can get appointnments for a specific user? DateTime startDate = DateTime.Now; DateTime endDate = startDate.AddDays(365); const int NUM_APPTS = 5; // Initialize the calendar folder object with only the folder ID. CalendarFolder calendar = CalendarFolder.Bind(service, WellKnownFolderName.Calendar, new PropertySet()); // Set the start and end time and number of appointments to retrieve.

EWS Java API get Attachment

妖精的绣舞 提交于 2019-12-08 04:16:34
问题 I have some issue in getting some attachment using ews java API 1.3 SNAPSHOT, i want to get Attachment in my email, here my code : try { ExchangeService service; service.setUrl(new URI("https://" + myserver + "/ews/Exchange.asmx")); ExchangeCredentials credentials = new WebCredentials(username, password); service.setCredentials(credentials); ItemView view = new ItemView(Integer.MAX_VALUE); view.getOrderBy().add(ItemSchema.DateTimeReceived, SortDirection.Ascending); Folder folder = Folder.bind

Return all email metadata in Office 365 Mail REST API preview

情到浓时终转凉″ 提交于 2019-12-08 04:13:47
问题 How do I return all the metadata from the Mail REST API that is part of Office 365 APIs Preview? The msdn docs seem to be indicating that you send an Accept header with the value of " application/json;odata.metadata=full ", but that results in the limited number of properties being returned and doesn't include the body of the email. http://msdn.microsoft.com/en-us/library/office/dn605901(v=office.15).aspx I have also tried " odata=verbose " with the same result. Here is the json that gets

Receiving 'ErrorAccessDenied' response code , when an outlook web add-in issues a GetItem request via the makeEwsRequestAsync api

左心房为你撑大大i 提交于 2019-12-07 20:06:40
问题 We are testing an Outlook Web Add-in with different combinations of Exchange Server and Outlook client versions. The add-in makes a GetItem request via the makeEwsRequestAsync API: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com

Python/exchangelib - How to access shared public folders and calendars

孤人 提交于 2019-12-07 19:25:30
How can I connect to a shared public folder using exchangelib? from exchangelib import DELEGATE, IMPERSONATION, Account, Credentials, ServiceAccount, \ EWSDateTime, EWSTimeZone, Configuration, NTLM, CalendarItem, Message, \ Mailbox, Attendee, Q, ExtendedProperty, FileAttachment, ItemAttachment, \ HTMLBody, Build, Version credentials = Credentials(username='DOMAIN\\username', password='password') config = Configuration(server='server', credentials=credentials, auth_type=NTLM, verify_ssl=False) account = Account(primary_smtp_address='user@email.com', config=config, autodiscover=False, access