EWS Java API autodiscover on a subdomain RRS feed

  • Question

  • I'm using the EWS Java API to hit our Exchange server. I would like to use autodiscover, but the autodiscover service is on a subdomain (mail.mycompany.com instead of mycompany.com), and our email addresses are on the domain (user@mycompany.com). Is there a way, short of changing the source to accept that host, to tell the ExchangeService object to look for the autodiscover service on the subdomain, rather than assume it's on the exact same domain as the email address?
    Friday, January 13, 2012 5:24 PM

All replies

  • I have the same issue and haven't figured it out yet. Hopefully some of the more experienced devs will have an answer for us shortly.


    Monday, October 8, 2012 7:06 AM
  • You can first form autodiscover URL based on some prefix like in your case "mail" and primary SMTP address domain of mailbox to be autodiscovered (concatanate both to make combined URL as you like), and then send autodiscover request on that URL.
    Tuesday, October 9, 2012 11:53 AM
  • additionally, please make sure that the autodiscover URL you are forming based on your need as I mentioned in my earlier reply, points/directs to respective exchange Client Access Server which can respond to autodiscover requests with requested information.
    Wednesday, October 10, 2012 8:10 AM