Java EWS - Connect to Hotmail RRS feed

  • Question

  • Hello,

    I'm trying to connect an Hotmail mailbox with EWS.

    The problem is that I can't connect to Hotmail....

    I have try that :

    ExchangeService service = new ExchangeService();
    ExchangeCredentials credentials = new WebCredentials( username + "@" + domain + ".fr", password, "hotmail.com");
    	service.setTraceListener(new TraceListener());
    //			 service.autodiscoverUrl(username + "@" + domain + ".fr", new ValidateRedirectionUrlCallback());
    //			 service.setUrl(new URI("https://outlook.com/EWS/Exchange.asmx"));
    			 service.setUrl(new URI("https://autodiscover.hotmail.com/autodiscover/autodiscover.xml"));
    //			service.autodiscoverUrl(/*"https://autodiscover.hotmail.com/autodiscover/autodiscover.xml"*/username + "@" + domain + ".fr", new ValidateRedirectionUrlCallback());
    catch (Exception e)
    	initMDC("", new Long(-1), new Long(-1), "ExchangeWSEngine/start");
    	m_stringBuffer = new StringBuffer("Exception 0 : ").append(LogFormatter.stack2string(e));

    I have try to make "static" URl, autodiscover URL, with domain or not (in WebCredentials).

    Did you see the problem ?


    Monday, March 4, 2013 4:53 PM

All replies

  • Are you trying to access Hotmail account or Exchange mailbox?

    DeVa, M.S., {MSFT} Please remember to mark the replies as answers if they help

    Wednesday, March 6, 2013 10:58 PM
  • hello,

    I want to connect Hotmail mailbox with a system like IMAP.

    Microsoft forum Administrator has respond to me that EWS is not able to connect Outlook mailbox...


    Thursday, March 7, 2013 7:48 AM
  • Is Outlook and Exchange mailbox is different ? Can i get connect to outlook by EWS . 

    Please help me . i have no idea i this system

    Thursday, December 5, 2013 10:25 AM