你好,我是新手,我正在尝试使用CMIS C#连接到alfresco存储库,但是这会在尝试创建会话时创建一个错误--这里是我的C#函数。
public void connecttofirstrepository()
{
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters[SessionParameter.BindingType] = BindingType.AtomPub;
parameters[SessionParameter.AtomPubUrl]= "http://172.20.0.113:8080/alfresco/service/cmis";
parameters[SessionParameter.User] = "username";
parameters[SessionParameter.Password] = "password";
SessionFactory factory = SessionFactory.NewInstance();
ISession session = factory.GetRepositories(parameters)[0].CreateSession();
}它显示了以下错误
{"ExceptionMessage":“未找到”,"ExceptionType":DotCMIS.Exceptions.CmisObjectNotFoundException","StackTrace":"at DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(UrlBuilder url at DotCMIS.Binding.AtomPub.AbstractAtomPubService.GetRepositoriesInternal(String repositoryId( at DotCMIS.Binding.AtomPub.AbstractAtomPubService.GetRepositoriesInternal(String repositoryId) at DotCMIS.Binding.Impl.BindingRepositoryService.GetRepositoryInfos(IExtensionsData extension) ) DotCMIS.Client.Impl.SessionFactory.GetRepositories(IDictionary`2参数,IObjectFactory objectFactory,AbstractAuthenticationProvider authenticationProvider,ICache cache)
发布于 2017-06-12 21:36:31
使用正确的CMIS服务URL对您的Alfresco版本是非常重要的,因为它在不同版本之间已经更改了好几次。
有关按版本分列的CMIS服务URL列表,请参见维基。
https://stackoverflow.com/questions/44436414
复制相似问题