Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

(EWS) How to call autodiscover URL to retrieve exchange service URL?

$
0
0

Hi Folks,

I have some code that finds the autodiscover url by searching on the SCP.  What I would like to do is then call the auto discover service at that location to determine the URL of the ExchangeService for making EWS calls.

The examples I can find in the MS documentation use an email address (ExchangeService.AutoDiscoverURL  and GetUserSettingsResponse).

What I would like to do is call the service located at the address given by the SCP and then set the ExchangeService.Url property.

I am aware that I need to use the ASUrl property of the AutoDiscover Response (POX), however, I do not seem to be able to find any information on how to make the request (using C#) and how to retrieve the response.

Regards

Andy


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>