none
[EWS Java API 2.0][JAVA] Autodiscover service couldn't be located. RRS feed

  • Question

  • Hello,

    i try to connect my service to exchange server 2010 SP1.
    I´am using microsoft outlook 2010.
    I know, that autodiscovering service works fine, because outlook-discovering-test works and EWSEditor.exe shows all Information about my folders and settings by Exchange2010 Server.

    Correct URL for Autodiscovering is: https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

    When i execute SCPLookup by the domain: EXCHANGE2010.intern.test.com i get this informationstack:

    ===========================================================================

    Performing SCP lookup for EXCHANGE2010.intern.test.com.

    Local computer in site: Bxx

    SCP URL found at: LDAP://CN=EXCHANGE2010,CN=Autodiscover,CN=Protocols,CN=EXCHANGE2010,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=test,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=intern,DC=test,DC=com

    Adding priority 3 SCP URL: https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

    Ordered List of Autodiscover endpoints:

      https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

    SCP lookup done.
    ==============================================================================

    External EWS Version for  EXCHANGE2010.intern.test.com:

    ExternalEwsVersion: 0.00.0000.000==============================================================================


    I´am using EWS-JAVA-API.
    And i try to do it like this:

    service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
    ExchangeCredentials credentials = new WebCredentials("A.B@intern.test.com", "ttr","EXCHANGE2010.intern.test.com");
    service.setCredentials(credentials);service.setTraceEnabled(true);
    service.setTraceFlags(EnumSet.allOf(TraceFlags.class)); 
    service.setTraceListener(new ITraceListener() {
    public void trace(String traceType, String traceMessage) {
    System.out.println("Type:" + traceType + " Message:" + traceMessage); }});
    service.autodiscoverUrl("A.B@intern.test.com",new IAutodiscoverRedirectionUrl() {
    public boolean autodiscoverRedirectionUrlValidationCallback(String url) throws AutodiscoverLocalException {
    System.out.println("url: " + url.toLowerCase().startsWith("https://"));
    return url.toLowerCase().startsWith("https://");
    }
    });

    Record of my tracing is:
    ==============================================================================

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:39:50Z">
    Determining which endpoints are enabled for host intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
    No Autodiscover endpoints are available for host intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
    Determining which endpoints are enabled for host autodiscover.intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
    No Autodiscover endpoints are available for host autodiscover.intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
    Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No Autodiscover redirection URL was returned.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    Trying to get Autodiscover host from DNS SRV record for intern.test.com.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    DnsQuery returned error 'DNS name not found [response code 3]'.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No appropriate SRV record was found.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No matching Autodiscover DNS SRV records were found.
    </Trace>

    Type:AutodiscoverResponse Message:<Trace Tag="AutodiscoverResponse" Tid="1" Time="2016-09-07 12:40:58Z">
    Autodiscover service call failed with error 'The Autodiscover service couldn't be located.'. Will try legacy service
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    Trying to call Autodiscover for A.B@intern.test.com on https://intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:40:58Z">
    POST /autodiscover/autodiscover.xml HTTP/1.1
    Keep-Alive : 300
    Content-type : text/xml; charset=utf-8
    Accept : text/xml
    User-Agent : ExchangeServicesClient/0.0.0.0
    Connection : Keep-Alive


    </Trace>

    Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:40:58Z">
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    null failed: I/O error: Connect to intern.test.com:443 [intern.test.com/172.30.0.10, intern.test.com/172.29.0.9, intern.test.com/192.168.168.7, intern.test.com/172.29.0.8] failed: Connection timed out: connect
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to call Autodiscover for A.B@intern.test.com on https://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:42:04Z">
    POST /autodiscover/autodiscover.xml HTTP/1.1
    Keep-Alive : 300
    Content-type : text/xml; charset=utf-8
    Accept : text/xml
    User-Agent : ExchangeServicesClient/0.0.0.0
    Connection : Keep-Alive


    </Trace>

    Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:42:04Z">
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    null failed: I/O error: Host name 'autodiscover.intern.test.com' does not match the certificate subject provided by the peer (CN=exchange2010)
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No Autodiscover redirection URL was returned.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to get Autodiscover host from DNS SRV record for intern.test.com.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    DnsQuery returned error 'DNS name not found [response code 3]'.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No appropriate SRV record was found.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No matching Autodiscover DNS SRV records were found.
    </Trace> ==================================================================================================

    • Edited by AlbertHavah Wednesday, September 7, 2016 2:23 PM
    Wednesday, September 7, 2016 1:27 PM

All replies

  • Hello,

    i just to connect my service to exchange server 2010 SP1.
    I´am using microsoft outlook 2010.
    I know, that autodiscovering service works fine, because outlook-discovering-test works and EWSEditor.exe shows all Information about my folders and settings by Exchange2010 Server.

    When i execute SCPLookup by the domain: EXCHANGE2010.intern.test.com i get this informationstack:

    ===========================================================================

    Performing SCP lookup for EXCHANGE2010.intern.test.com.

    Local computer in site: Bxx

    SCP URL found at: LDAP://CN=EXCHANGE2010,CN=Autodiscover,CN=Protocols,CN=EXCHANGE2010,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=test,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=intern,DC=test,DC=com

    Adding priority 3 SCP URL: https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

    Ordered List of Autodiscover endpoints:

      https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

    SCP lookup done.
    ==============================================================================

    External EWS Version for  EXCHANGE2010.intern.test.com:

    ExternalEwsVersion: 0.00.0000.000==============================================================================


    I´am using EWS-JAVA-API.
    And i try to do it like this:


    service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
    ExchangeCredentials credentials = new WebCredentials("A.B@intern.test.com", "ttr","EXCHANGE2010.intern.test.com");
    service.setCredentials(credentials);service.setTraceEnabled(true);
    service.setTraceFlags(EnumSet.allOf(TraceFlags.class)); 
    service.setTraceListener(new ITraceListener() {
    public void trace(String traceType, String traceMessage) {
    System.out.println("Type:" + traceType + " Message:" + traceMessage); }});
    service.autodiscoverUrl("A.B@intern.test.com",new IAutodiscoverRedirectionUrl() {
    public boolean autodiscoverRedirectionUrlValidationCallback(String url) throws AutodiscoverLocalException {
    System.out.println("url: " + url.toLowerCase().startsWith("https://"));
    return url.toLowerCase().startsWith("https://");
    }
    });

    Record of my tracing is:
    ==============================================================================

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:39:50Z">
    Determining which endpoints are enabled for host intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
    No Autodiscover endpoints are available for host intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
    Determining which endpoints are enabled for host autodiscover.intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
    No Autodiscover endpoints are available for host autodiscover.intern.test.com
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
    Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No Autodiscover redirection URL was returned.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    Trying to get Autodiscover host from DNS SRV record for intern.test.com.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    DnsQuery returned error 'DNS name not found [response code 3]'.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No appropriate SRV record was found.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    No matching Autodiscover DNS SRV records were found.
    </Trace>

    Type:AutodiscoverResponse Message:<Trace Tag="AutodiscoverResponse" Tid="1" Time="2016-09-07 12:40:58Z">
    Autodiscover service call failed with error 'The Autodiscover service couldn't be located.'. Will try legacy service
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
    Trying to call Autodiscover for A.B@intern.test.com on https://intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:40:58Z">
    POST /autodiscover/autodiscover.xml HTTP/1.1
    Keep-Alive : 300
    Content-type : text/xml; charset=utf-8
    Accept : text/xml
    User-Agent : ExchangeServicesClient/0.0.0.0
    Connection : Keep-Alive


    </Trace>

    Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:40:58Z">
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    null failed: I/O error: Connect to intern.test.com:443 [intern.test.com/172.30.0.10, intern.test.com/172.29.0.9, intern.test.com/192.168.168.7, intern.test.com/172.29.0.8] failed: Connection timed out: connect
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to call Autodiscover for A.B@intern.test.com on https://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:42:04Z">
    POST /autodiscover/autodiscover.xml HTTP/1.1
    Keep-Alive : 300
    Content-type : text/xml; charset=utf-8
    Accept : text/xml
    User-Agent : ExchangeServicesClient/0.0.0.0
    Connection : Keep-Alive


    </Trace>

    Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:42:04Z">
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    null failed: I/O error: Host name 'autodiscover.intern.test.com' does not match the certificate subject provided by the peer (CN=exchange2010)
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No Autodiscover redirection URL was returned.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    Trying to get Autodiscover host from DNS SRV record for intern.test.com.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    DnsQuery returned error 'DNS name not found [response code 3]'.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No appropriate SRV record was found.
    </Trace>

    Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
    No matching Autodiscover DNS SRV records were found.
    </Trace>

    ==================================================================================================

    Please help me to detect autodiscovering-endpoints.





    Wednesday, September 7, 2016 1:09 PM