I use 'sp2013' for the server name, replace as appropriate.
- Work with CMIS-Workbench as your go-to tool for confirmation before working with your code. This is like your SoapUI when working with Webservices, or your Database Editor tool when trying to write queries for your application. Work through everything you want to do with CMIS Workbench *first* before you write code.
- Sharepoint 2013 setup notes:
- Sharepoint Central Admin (http://sp2013:90/):
- Security, under 'General Security' section, 'Specify Authentication Providers'.
- Pick the default zone, or if you know Sharepoint the appropriate zone.
- Under Windows Auth, I had to enable 'basic auth'...I also disabled integrated as my intent was to use Sharepoint soley as a repository, so no need to get the system confused between integrated or basic auth (obviously, if using this route in production, need to setup SSL).
- Site Settings (http://sp2013):
- Pick the site you want to access through CMIS (for example, 'Documents').
- In the upper right, beside the login name, is a 'gear' icon for settings - click that, go to 'Site Settings'.
- Under 'Site Action' header is a 'Manage Site Features' link, click that.
- Activate 'Content Management Interoperability Services (CMIS) Producer'
- Repeat for each site you want to access. Each site will appear as a unique Repository from the CMIS point of view.
- Again, use CMIS Workbench for all your confirmation/testing. Add some files/folders to the above Site(s)/Repo(s) you shared for CMIS.
- Connect to the URL http://sp2013/cmis/rest/?getRepositories through CMIS Workbench. You will likely use this one for your apache chemistry code as well.
- For Apache Chemistry, Lesson learned --
- DO NOT try to create a session by re-using your Map
param and add in the repo ID...instead, get the Repository object directly, and use the Repository.createSession(). - For example of best-approach/usage of the Apache Chemistry CMIS library, look at the CMIS Workbench source code (that is how I learned the above error/correction).
- There are some CMIS functions that DO NOT work with Sharepoint 2013. I ran into only one and have not done a thorough review, but this already delayed me significantly:
- SCORE() does not work in Sharepoint 2013
-Darren