OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
869 stars 560 forks source link

Autodiscover API enhancement request #458

Open dconnelly opened 8 years ago

dconnelly commented 8 years ago

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.

serious6 commented 8 years ago

hi @dconnelly thanks for reporting. Maybe you want to provide a PR on this?