Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi Steve,
I used to work with EWS from a .NET app, and the following C# code worked for me:
public int Main()
{
...
try
{
_exchangeService.AutodiscoverUrl(emailAddress, RedirectionUrlValidationCallback);
}
catch (Exception ex)
{
_log = "Couldn't autodiscover the URL: " + ex.Message;
}
...
}
// Create the callback to validate the redirection URL.
static bool RedirectionUrlValidationCallback(String redirectionUrl)
{
return (redirectionUrl == @"https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml");
}
Try converting it to TestComplete's JScript code. Please let me know if you need my assistance.