Hi,
I am trying to Get the CASVersion of a target user's mail box.
The Exchange 2007 Server has its Auto discover in POX and i am using EWS Managed API
Below is the Code:
AutodiscoverService autoService = new AutodiscoverService(ExchangeVersion.Exchange2007_SP1);
autoService.Credentials = //Provided the credential;
autoService.Url = new Uri("https://mydomain/autodiscover/autodiscover.xml");
GetUserSettingsResponse userResponse = autoService.GetUserSettings("user@mydomain", UserSettingName.CasVersion);
Error:
"An element node 'soap:Envelope' of the type Element was expected, but node 'Autodiscover' of type Element was found.