ExchangeService.autodiscoverUrl() works well enough to obtain the EWS endpoint URL, but has no option to return other information such as user display name, etc. It is possible to use the AutodiscoverService directly for obtaining this information in a single call, but there is some hairy logic in the private method ExchangeService.getEwsUrlFromResponse to extract the EWS URL from the response and this is unavailable when using AutodiscoverService directly. Also, the legacy fallback process for autodiscovery is part of ExchangeService.autodiscoverUrl() and not AutodiscoverService, so I guess it'd be nice if all of this could be moved to the AutodiscoverService class.
ExchangeService.autodiscoverUrl() works well enough to obtain the EWS endpoint URL, but has no option to return other information such as user display name, etc. It is possible to use the AutodiscoverService directly for obtaining this information in a single call, but there is some hairy logic in the private method ExchangeService.getEwsUrlFromResponse to extract the EWS URL from the response and this is unavailable when using AutodiscoverService directly. Also, the legacy fallback process for autodiscovery is part of ExchangeService.autodiscoverUrl() and not AutodiscoverService, so I guess it'd be nice if all of this could be moved to the AutodiscoverService class.