exchangewebservices

Java InaccessibleWSDLException while accessing WSDL through client stubs

旧巷老猫 提交于 2019-12-06 08:58:44
问题 I am trying to write custom Java client for Exchange Web Services. I have generated client stubs using wsimport tool as explained here from EWS's Services.wsdl file. And now I have written code that uses these stubs. I am getting following exception: Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException. java.io.IOException: Got Server returned HTTP response code: 401 for URL: https://host.domain.com/ews/Services.wsdl

Access another mailbox calendar events with PHP-EWS

泪湿孤枕 提交于 2019-12-06 08:11:31
In PHP-EWS library ( https://github.com/jamesiarmes/php-ews ) I can access the calendar events of a specific user using this code: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey) In all the library features we always use the authentication for a single user: $ews = new ExchangeWebServices($host, $username, $password, $version); However how can I get the calendar events from another user's mailbox? If I have an account in LDAP with admin privileges is it possible to access the calendar events from another user mailbox using the PHP-EWS library? Or is

Am getting invalid XML as a response from EWS calls?

家住魔仙堡 提交于 2019-12-06 07:27:58
问题 Am using EWS API to connect Exchange server. The connection was established, but I didn’t receive any response. Am getting exception “The response received from the service didn't contain valid XML.” The inner Exception was “DTD is prohibited in this XML document.” I didn’t get what is DTD? 回答1: I was getting your problem until (after MUCH trial and error): set TraceEnabled to true, this will dump the back and forth messages to console. I used the URL https://yourexchangeserver/EWS/Exchange

How do I get the displayname of the logged in user in EWS?

让人想犯罪 __ 提交于 2019-12-06 05:42:08
问题 Exchange Autodiscovery will give me the user's Display Name via the UserSettingName.UserDisplayName property. However, in cases where autodiscovery fails and connection needs to be done manually I can't figure out how to get the DisplayName. I tried this, but I just get the users' email address: _service = new ExchangeService(); _service.Credentials = new System.Net.NetworkCredential(exchangeSettings.EmailAddress, exchangeSettings.Password); _service.Url = new Uri(exchangeSettings

How to tell when to use EWS vs rest API in Outlook Add-in

对着背影说爱祢 提交于 2019-12-06 04:52:12
Is it possible to tell either in the XML file or through OfficeJs if the add-in can use the REST API or if it needs to use the older EWS API? We have an Outlook add-in that needs to support OWA/O365 and Outlook 2016 with a stand alone exchange server. We are wondering if it is possible through the manifest XML file or through OfficeJs to detect the configuration of users account so we can properly access their content with the correct API. The only alternative I can see is to provide two separate add-ins for this, but I assume MS has a solution to this issue. There isn't a specific API for

Check exchange credentials remotely and check user logged in

别等时光非礼了梦想. 提交于 2019-12-06 03:05:44
问题 I have attempted this with not much success. Basically I need to login to Exchange using EWS remotely. The issue is I don't know if the user has logged in OK or if the credentials are wrong as I get nothing back! If I provide wrong credentials the software just carries on! Is there something I'm missing, I've checked the MSDN stuff about EWS which shows you how to connect to exchange but nothing about validating credentials! Below is the code I currently have to connect. public void connect

Available UserConfigurationName names for GetUserConfiguration for DistinguishedFolderId 'calendar'?

天涯浪子 提交于 2019-12-06 02:19:23
The Exchange Web Services have a method GetUserConfiguration that needs a UserConfigurationName to determine what settings to retrieve for a folder. What UserConfigurationNames are available? (specifically for DistinguishedFolderId 'calendar', but a broader list is fine of course). In a distant past I managed to find 4 but I have no idea where I got those and if this is the entire list. It probably depends on Exchange version as well (these 4 work under 2010). These are the four I have come up with, in an example SOAP call: <soap:Body> <mes:GetUserConfiguration> <mes:UserConfigurationName Name

How do I get the real email address with Exchange web services?

好久不见. 提交于 2019-12-05 22:54:18
I am trying to get the real email address of the sender of an email using Exchange web services, however the mailitem.Sender.Address contains something like - /O=EXCHANGELABS/OU=EXCHANGE ADMINISTRATIVE GROUP (...........)/CN=RECIPIENTS/CN=...........-..... How can I get to the real email address of the sender of this email? My code: Dim sf As SearchFilter = New SearchFilter.SearchFilterCollection(LogicalOperator.And, New SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, False)) Dim findResults As FindItemsResults(Of Item) = service.FindItems(WellKnownFolderName.Inbox, sf, New ItemView(128))

When using manually set credentials, EWS auto discover stops working

倾然丶 夕夏残阳落幕 提交于 2019-12-05 22:36:08
I am running into a very strange issue and I am convinced it is just something stupid that I am overlooking. Using the EWS managed API, I try to connect to a mailbox to read the contacts. Originally, I used the default credentials, in which case the auto discovery worked. The problem is that later on we want to run this on a server and impersonate a user, so I changed it by manually specifying the credentials. This then broke, even when using my own credentials. As an example, this worked: service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.AutodiscoverUrl("user@example

EWS. How to get latest SyncState without initial synchronization?

此生再无相见时 提交于 2019-12-05 22:18:51
问题 Consider that I have 100,000 messages in a folder. I want to be able to synchronize with latest changes, but I don't need any old messages. Asking for initial synchronization with SyncFolderItems(..., null /*syncState*/)? would bring back all 100,000 messages (that I don't need). How can I jump directly to the latest SyncState without reading 100,000 entities from server? 回答1: You can't work around that. You need to iterate through the collection once. After you have processed all existing