We are trying to setup the Exchange Web Service to connect to our 2016 Exchange server.
The URL we are using is https://mail.domain.com/ews/exchange.asmx
When I test it with my credentials I get the following:
However, if I test my EWS at https://testconnectivity.microsoft.com/ the only error I get about autodiscover is the following:
Attempting to test potential Autodiscover URL https://mviusa.com:443/Autodiscover/Autodiscover.xml
Testing of this potential Autodiscover URL failed.
Additional Details
Elapsed Time: 6066 ms.
That URL should fail since that is pointing to our webhost / website and not our internally hosted Exchange server. Autodiscover seems to work with our Outlook clients, so not sure what I may need to have our Exchange admin look at.
We have also tried using the local DNS name for that server as well as the FQDN for that server. We have tried the following paths with both the Public URL, Internal Friendly Name as well as the FQDN.
- /ews/Exchange.asmx
- /ews/UM2007Legacy.asmx
- /Autodiscover/Autodiscover.xml
Both of the EWS links give the error about finding auto discover whereas the Autodiscover link just times out.
Using the ews urls above we tried to change the Type in the Edit Web Service dialog box from Exchange to Custom. If we leave the User Name as username @domain.com we get 401 unauthorized. However, if we change the login name to Domain\Username the connection tests successfully. The issue there is when the workflow runs we get the following error.
I am sure we are missing something simple. Any help would be appreciated.