Lync 2010自动发现问题... [英] Lync 2010 Autodiscovery Issue ...

查看:90
本文介绍了Lync 2010自动发现问题...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





大家好,



我在一家IT公司工作,必须建立一个模块来连接到  下划线"> Lync
Server 2010  。 



我正在按照 UCWA
文档,但适用于Lync 2013
  



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





我遇到以下问题......



1>正如文档中提到的在第一个GET外部请求中我应该得到3个JSON对象,但我只得到2个命名



用户和域名 



2>我继续使用这些值并在用户参考上发出第二个GET请求 

我在这里得到  X-MS-WebTicketURL: https:/webdir.company.com/webticket.srv 代替X-Authenticate Header 



Ok 

3>我继续这个并使用用户凭据(  grant_type,username,password)发出下一个POST请求我的凭据是正确的但我仍然得到401未经授权的回复&b;


请建议我如何拨打Lync Server以获得实际响应或访问它



请提及完成这项工作所需的步骤或有价值的建议。





这就是我从我的
代码获得的输出  ...





测试1 - 发送Http GET请求自动发现



第1步首先获取请求响应。 



向URL发送'GET'请求:https://lyncdiscover.companyname.com

响应代码:200



{" AccessLocation":"外部","根和QUOT;:{"连结":[{"令牌QUOT;:"域"," HREF":" HTTPS ://dirweb.companyname.com/Autodiscover/AutodiscoverService.svc/root/domain"},{"令牌QUOT;:"使用者"," HREF":" HTTPS://dirweb.companyname.com/Autodiscover /AutodiscoverService.svc/root/user"}]}}





step 2 Second GET Request Response。



HTTP / 1.1 401未经授权[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 ,日期:星期一,
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





第3步第三次POST请求响应用户
凭证



向URL发送'发布'请求:https://dirweb.companyname.com/WebTicket/WebTicketService.svc

响应代码:401

HTTP / 1.1 401未经授权[内容类型:
text / html,服务器:Microsoft-IIS / 7.5,X-MS-Server-Fqdn:catl0ms809.corp.companyname.com, WWW-Authenticate:NTLM,X-Powered-By:ASP.NET,日期:星期一,2015年1月19日13:01:36 GMT,Content-Length:1293,Set-Cookie:NSC_mzodejsqppm.sfwfstfqspyz_4443 = ffffffff0936f2b845525d5f4f58455e445a4a42276b; path = /;安全]
org.apache.http.conn.BasicManagedEntity@1b65439



我尝试过UCMA,但我没有得到任何帮助..




建议如何拨打休息电话/或其他任何方式 连接到Lync2010服务器
 



这对我们非常重要请帮助......





谢谢,,

解决方案

< blockquote>

这是重复的并在这里回答:


https://social.msdn.microsoft.com/Forums/lync/en-US/8feed12d-08b4-4282-b59d -ea79ecc205a8 /的Lync-2010-自动发现-发出─?论坛= ucwebapi


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 ...

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 

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 , ,
,

解决方案

This is duplicated and answered here:

https://social.msdn.microsoft.com/Forums/lync/en-US/8feed12d-08b4-4282-b59d-ea79ecc205a8/lync-2010-autodiscovery-issue-?forum=ucwebapi


这篇关于Lync 2010自动发现问题...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆