Connecting via CMIS (dotCMIS) to SP2010: exception unauthorised

前端 未结 2 1545
挽巷
挽巷 2021-01-29 02:30

Im using dotCMIS and would like to do a simple connect to my SP2010 server. Im trying to do this with C# like here http://chemistry.apache.org/dotnet/getting-started-with-dotcmi

相关标签:
2条回答
  • 2021-01-29 03:15

    Your AtomPubUrl looks suspicious. I can't tell if that's a placeholder you've added to mask the real URL or if that's the actual URL you are using. If it is the actual URL it looks like it is missing the path to the AtomPub service document. To tell if that's the case, you should be able to invoke the URL, log in, and get a bunch of XML back, which is the CMIS service descriptor. If instead you are getting a user-facing page full of HTML, you are using the wrong URL.

    For example, in Alfresco, users log in to /share, but the AtomPub binding is at /alfresco/cmisatom.

    0 讨论(0)
  • 2021-01-29 03:24

    Yes the AtomPubUrl was wrong.

    For sharepoint its not enough to post the default sp url (http://mysharepoint) or the url to the cmis lib (http://mysharepoint/cmis) I need to point to the repository id, somehow the sp endpoint for CMIS is:

    http://mysharepoint/_vti_bin/<myLib4CMIS>/<repID>?getRepositoryInfo
    

    http://technet.microsoft.com/en-us/library/ff934619.aspx

    Somehow it was confusing, but its working :) dotCMIS is really nice.

    0 讨论(0)
提交回复
热议问题