These are chat archives for OfficeDev/ews-java-api

18th
Oct 2015
venkatrangan
@venkatrangan
Oct 18 2015 19:44
I am trying to use EWS API with NTLM Authentication that is built into HTTP Client 4.4.1 and it is failing with 401 Unauthorized error.
My call sequence is as follows:
        String username = "mydomain\\username";
        String password = "mypassword";
        String exchangeServer = "exchangeserver";
        String domain = "mydomain";
        boolean performAutodiscovery = false;

        ExchangeCredentials credentials = new WebCredentials(username, password, domain);
        service.setCredentials(credentials);
        try {
            service.setUrl(new URI("https://" + exchangeServer + "/EWS/Exchange.asmx"));
        } catch(Exception e) {

        }
venkatrangan
@venkatrangan
Oct 18 2015 19:51
Using the external ExRCA with the NTLM style name and credentials works fine.
This message was deleted