locked
Java EWS Managed API v1.1.5 - autodiscover feature RRS feed

  • Question

  • Hi,

    I am trying to autodiscover the ews service using the below code but it is not working.


    The error is:

    java.lang.RuntimeException: microsoft.exchange.webservices.data.AutodiscoverLocalException: The Autodiscover service couldn't be located.


    The code is:

      ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
      ExchangeCredentials credentials = new WebCredentials(userName.trim(),password.trim(),domain.trim());
      
      service.setCredentials(credentials);
      service.setTraceEnabled(true);
      service.autodiscoverUrl(emailAddress);

    Thursday, October 25, 2012 9:09 PM