使用im dotCMIS,很想做一个简单的连接到我的服务器SP2010。我试着用C#这样做喜欢这里 HTTP://chemistry.apache。组织/ DOTNET /工具入门与 - dotcmis.html 在第一部分
Im using dotCMIS and would like to do a simple connect to my SP2010 server. Im trying to do this with C# like here chemistry.apache/dotnet/getting-started-with-dotcmis.html in the first part
所以我有这样的事情:
Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters[SessionParameter.BindingType] = BindingType.AtomPub; parameters[SessionParameter.AtomPubUrl] = "mysharepoint"; parameters[SessionParameter.User] = "SPAdmin"; parameters[SessionParameter.Password] = "1234sharepoint"; SessionFactory factory = SessionFactory.NewInstance(); ISession session = factory.GetRepositories(parameters)[0].CreateSession(); //exception unathorized不过,我总是得到异常: DotCMIS.Expcetions.CmisRunterimException:Unathorised
任何想法?通过浏览器,我可以登录使用相同的用户名/密码的网站,因此多数民众赞成可能是没问题的。起初我因子评分,因为NTLM问题,它( issues.apache/ JIRA /浏览/ CMIS-531 ),但即使进出口使用参数[SessionParameter.AuthenticationProviderClass] =DotCMIS.Binding.NtlmAuthenticationProvider; 其相同的异常。嗯...这个异常是不是真的帮助我。我希望我能得到更多的信息 - 也许有更好的办法?我还能尝试一下呢?谢谢!
Any ideas? Via browser I can login to the site with the same user/pass, so thats might be not the problem. At first I tought its because of the NTLM problem (issues.apache/jira/browse/CMIS-531) but even if Im using parameters[SessionParameter.AuthenticationProviderClass] = "DotCMIS.Binding.NtlmAuthenticationProvider"; its the same exception. And well... this exception is not really helping me. I wish I could get more information - maybe there is a better way? What else could I try? Thank you!
PS:是的,之前我开始与dotCMIS我没有安装和配置MS CMIS连接器:的 technet.microsoft/en-us/library/ff934619.aspx
PS: And yes, before I started with dotCMIS I did install and configure the MS CMIS connector: technet.microsoft/en-us/library/ff934619.aspx
推荐答案是在AtomPubUrl是错误的。
Yes the AtomPubUrl was wrong.
对于SharePoint它不是足够发布默认SP URL(的http:// mysharepoint )或URL到CMIS LIB( HTTP: // mysharepoint / CMIS )我需要指出的存储库id,不知何故为CMIS SP的端点是:
For sharepoint its not enough to post the default sp url (mysharepoint) or the url to the cmis lib (mysharepoint/cmis) I need to point to the repository id, somehow the sp endpoint for CMIS is:
mysharepoint/_vti_bin/<myLib4CMIS>/<repID>?getRepositoryInfotechnet.microsoft/en-us/library/ ff934619.aspx
不知怎的,这是混乱的,但它的工作:) dotCMIS是非常好的。
Somehow it was confusing, but its working :) dotCMIS is really nice.
更多推荐
通过CMIS(dotCMIS)到SP2010连接:未经授权异常
发布评论