locked
Lync 2010 Autodiscovery Issue ... RRS feed

  • Question

  • Hi Everyone ,

    I am working in an IT company and have to built a module to connect to Lync Server 2010  in Java. 

    I am following all the steps mentioned in the UCWA Documentation but It is for Lync 2013 . 

    http://ucwa.lync.com/documentation/KeyTasks-CreateApplication 

    I am getting the following problem ...(Output Mentioned Bellow)

    1> As mention in the documentation In the first GET external request I should get 3 JSON object but I am getting only 2 named

    User And Domain 

    It Showing Me External Location But I am not getting the xframe url , so please kindly tell how can I get it .

    2>I continued with these value and Made the second  GET request on User reference 
    Here I Am getting X-MS-WebTicketURL: https:/webdir.company.com/webticket.srv  instead  of a X-Authenticate Header 

    Ok 
    3> I Continued with this and made the next POST request with user credentials ( grant_type ,username , password ) my credentials are correct but i am still getting 401 Unauthorized response 

    Please Suggest me to how to make call to Lync Server to get the actual response or to get accessed into it

    Please mention the necessary steps or valuable suggestion to do this work .

    This Is What I Am Getting The Output From My Code  . . .

    Testing 1 - Send Http GET request To Auto Discover

    step 1 First GET Request Response . 

    Sending 'GET' request to URL : https://lyncdiscover.companyname.com
    Response Code : 200

    {"AccessLocation":"External","Root":{"Links":[{"token":"Domain","href":"https://dirweb.companyname.com/Autodiscover/AutodiscoverService.svc/root/domain"},{"token":"User","href":"https://dirweb.companyname.com/Autodiscover/AutodiscoverService.svc/root/user"}]}}


    step 2 Second GET Request Response .

    HTTP/1.1 401 Unauthorized [Cache-Control: no-cache, Pragma: no-cache, Content-Type: text/html, Expires: -1, Server: Microsoft-IIS/7.5, X-MS-WebTicketURL: https://dirweb.companyname.com/WebTicket/WebTicketService.svc, X-MS-Server-Fqdn: catl0ms810.corp.companyname.com, X-Powered-By: ASP.NET, Date: Mon, 19 Jan 2015 13:01:32 GMT, Content-Length: 1293, Set-Cookie: NSC_mzodejsqppm.sfwfstfqspyz_4443=ffffffff0936f2bb45525d5f4f58455e445a4a42276b;path=/;secure] org.apache.http.conn.BasicManagedEntity@46409d
    OAuthToken Is = https://dirweb.companyname.com/WebTicket/WebTicketService.svc


    Step 3 Third POST Request Response With User Credentials

    Sending 'Post' request to URL : https://dirweb.companyname.com/WebTicket/WebTicketService.svc
    Response Code : 401
    HTTP/1.1 401 Unauthorized [Content-Type: text/html, Server: Microsoft-IIS/7.5, X-MS-Server-Fqdn: catl0ms809.corp.companyname.com, WWW-Authenticate: NTLM, X-Powered-By: ASP.NET, Date: Mon, 19 Jan 2015 13:01:36 GMT, Content-Length: 1293, Set-Cookie: NSC_mzodejsqppm.sfwfstfqspyz_4443=ffffffff0936f2b845525d5f4f58455e445a4a42276b;path=/;secure] org.apache.http.conn.BasicManagedEntity@1b65439

    I tried with UCMA but i didn't get any help out of this ..

    Please Suggest How To Make A Rest Call/Or Any Other Way  To Get Connected To Lync2010 Server 

    It is very important for us please help . . .

    Thanks 
    Wednesday, February 18, 2015 2:59 PM

All replies

  • You won't be able to communicate with UCWA using a Lync 2010 deployment. The routes were added in Lync Server 2013 CU1.
    Monday, February 23, 2015 7:27 PM