Hello,
i got the problem that I can not use ews with Lync. Main issue is that it can not find the url for ews. First I thought its an authorization issue but I could authenticate against autodiscover service. At the moment is just plain and simple. The autodiscover service just gives back no settings and, therefore, the client can not use them.
Here is a simple Trace of an AutoDiscoverRequest for an existing user (administrator@contoso.com). I can access this user via owa. My Exchange is 2013-exchange.contoso.com.
</Trace><Trace Tag="AutodiscoverRequest" Tid="6" Time="2014-08-06 12:11:06Z" Version="15.00.0516.014"><?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover" xmlns:wsa="http://www.w3.org/2005/08/ addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><a:RequestedServerVersion>Exchange2010</a:RequestedServerVersion><wsa:Action>http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetUserSettings</wsa:Action><wsa:To>https://autodiscover.contoso.com/autodiscover/autodiscover.svc</wsa:To></soap:Header><soap:Body><a:GetUserSettingsRequestMessage xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover"><a:Request><a:Users><a:User><a:Mailbox>administrator@contoso.com</a:Mailbox></a:User></a:Users><a:RequestedSettings><a:Setting>ExternalMailboxServer</a:Setting><a:Setting>ExternalEcpUrl</a:Setting><a:Setting>ExternalEwsUrl</a:Setting><a:Setting>ExternalOABUrl</a:Setting><a:Setting>ExternalUMUrl</a:Setting><a:Setting>ExternalWebClientUrls</a:Setting></a:RequestedSettings></a:Request></a:GetUserSettingsRequestMessage></soap:Body></soap:Envelope></Trace><Trace Tag="AutodiscoverResponseHttpHeaders" Tid="6" Time="2014-08-06 12:11:06Z"> HTTP/1.1 200 OK Transfer-Encoding: chunked request-id: 1eab308b-7379-4fc3-a6a8-897d4fae947b X-TargetBEServer: 2013-exchange.contoso.com X-DiagInfo: 2013-EXCHANGE Persistent-Auth: true X-FEServer: 2013-EXCHANGE Cache-Control: private Content-Type: text/xml; charset=utf-8 Date: Wed, 06 Aug 2014 12:11:06 GMT Set-Cookie: X-BackEndCookie=S-1-5-21-2334337719-3181891708-3418520224-500=u56Lnp2ejJqBzpvLxs+cy8fSnMrHx9LLmsvP0p3Gz53Syc vPx5vIz8mZyMvOgYHH0MnQzc/Oy9/OzcXNzsXPyd+vsg==; expires=Wed, 06-Aug-2014 12:21:06 GMT; path=/autodiscover; secure; HttpO nly Server: Microsoft-IIS/8.0 WWW-Authenticate: Negotiate oYG2MIGzoAMKAQChCwYJKoZIgvcSAQICooGeBIGbYIGYBgkqhkiG9xIBAgICAG+BiDCBhaADAgEFoQMCAQ+ieTB3oAMC ARKicARuXfsB+lnDIbWIxgylQb3QKQSCfWlpmdTZYqO0hzwfIQ5qjYueujRiWUedp6MidWuD4F+T3xhGo1WQ0EVSqgzqd/ILQ+FhSu6LdMKva5H+wW4E1Ayl PuZdjURv2GPcxDRbSPyYmD+6teRdVzeGwf0= X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET</Trace><Trace Tag="AutodiscoverResponse" Tid="6" Time="2014-08-06 12:11:06Z" Version="15.00.0516.014"><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetUserSetting sResponse</a:Action><h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/2010/Autodiscover" xmlns:i="http://www.w3.org/ 2001/XMLSchema-instance"><h:MajorVersion>15</h:MajorVersion><h:MinorVersion>0</h:MinorVersion><h:MajorBuildNumber>516</h:MajorBuildNumber><h:MinorBuildNumber>29</h:MinorBuildNumber><h:Version>Exchange2013</h:Version></h:ServerVersionInfo></s:Header><s:Body><GetUserSettingsResponseMessage xmlns="http://schemas.microsoft.com/exchange/2010/Autodiscover"><Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ErrorCode>NoError</ErrorCode><ErrorMessage /><UserResponses><UserResponse><ErrorCode>NoError</ErrorCode><ErrorMessage>No error.</ErrorMessage><RedirectTarget i:nil="true" /><UserSettingErrors /><UserSettings /></UserResponse></UserResponses></Response></GetUserSettingsResponseMessage></s:Body></s:Envelope></Trace>
As you can see. The Autodiscover just does not respond with any settings for the user. I checked several times and all the internal and external urls for the ews, ecp etc. are set and fine. DNS Records for Autodiscover are good, because the client sends
the request. Certificates are also not possible because I get a "good" answer.
Any ideas?
Regards Martin