Skip Ribbon Commands
Skip to main content

Quick Launch

 

 Midwest Bloggers

 
 Arbindo Chattopadhyay
 U.S. Midwest SharePoint Community
 Ram Gopinathan
 Larry Clarkin
 Kevin Hammond
 Dave Bost
 Angela Binkowski
 Andrew Ehrensing
 John West
 

 User Groups

 
 Chicago SharePoint User Group
 Chicago .NET Users Group
 Chicago Windows User Group
 Chicago Visual Studio Team System User Group
Larry Kuhn > Posts > Getting the CMIS Connector up and running in 2010-7a
July 23
Getting the CMIS Connector up and running in 2010-7a

With the recent release of the Content Management Interoperability Services (CMIS) connector for SharePoint Server 2010 as part of the Microsoft SharePoint 2010 Administration Toolkit v1.0 I decided that I would like to take it for a spin and see how it works and what it has to offer.  For me, since I don’t have access to any non-Microsoft CMIS Producers or Consumers (such as SAP, Alfresco and Documentum) I figured the easiest thing to do would be deploy the connector into the 2010 Information Worker Demonstration and Evaluation Virtual Machine (RTM) 2010-7a vm.

Generally speaking the experience was pretty smooth, but I did encounter some small bumps along the way.  With the help of my colleagues I got through it, and I’ll share the details here.
The first obstacle I encountered was that as of right now (July 2010) there’s virtually no documentation for the connector.  I’m told that is being addressed, and in the interim hopefully this blog post will temporarily bridge the gap.
 
Step 1 – Run the Administration Toolkit installer.  This is a quick and painless exercise.  I accepted all the defaults, and the final result as far as the CMIS connector goes is that a web solution package will have been deposited onto your server: “C:\Program Files\Microsoft\SharePoint 2010 Administration Toolkit\Content Management Interoperability Services (CMIS) Connectors\spcmis.wsp”  This one package contains both the Producer and Consumer features.
 
Step 2 – Add the solution to the farm solution gallery.  This is done via the PowerShell command line: (don't forget that Tab path completion is your friend here, so you don't have to tediously type all of this)
add solution
 
Step 3 – Deploy the solution.  This can be done either at the PowerShell command line or in the Central Admin UI.  I chose the latter.  Go to Central Administration -> System Settings -> Manage farm solutions, click on the spcmis.wsp name, and then Deploy Solution.  In my case I chose to deploy it to all web apps.  You could be more selective if you like, but keep in mind which will be your Producer; you’ll need to know that for the next step.
When deployment is complete, the Solution Properties will look similar to this:
solution properties
 
Step 4 – Make sure the web app that will host the Producer only has 1 host header.  If you don’t you’ll run into an error down at Step 7 stating that the service could not be activated (like I did initially).  The explanation of the cause and solution to this problem is described here.  So, since in my case I wanted http://intranet.contoso.com to host the Producer sites, I went into IIS Manager, selected the Intranet site (a.k.a web app in SharePoint) clicked on Bindings… and removed the entry for http intranet host header (of course, this means you can’t browse to http://intranet anymore, but oh well).
IIS edit bindings to remove second host header
 
Step 5 – Activate the Producer Feature on the site that holds the content that you want to consume.  I did this on the root site at http://intranet.contoso.com/ .  Site Settings -> Manage site features, and click “Activate”.  The result will look like this:
producer site feature
 
Step 6 – Activate the Consumer Feature on the web app where you will want to be able to use the CMIS Consumer web part.  I did this on the site collection at the root of http://itweb.contoso.com . Site Settings -> Manage site collection features, and click “Activate”.  The result will look like this:
consumer site collection feature
 
Step 7 – Insert the CMIS Consumer web part onto a page.  This is all standard stuff: Pick any page in the consumer site collection, put the page into edit mode, go to the Insert ribbon and pick the CMIS Consumer web part:
consumer web part insert
 
Then edit its properties and then this is where things were mysterious for me.  What the heck goes into the “Specify WSDL Address ” property?  I suppose if I were more familiar with the CMIS spec and/or had spent more time dissecting the spcmis.wsp I might have eventually figured this out, but rather I asked around and luckily I was able to find someone smarter than me to tell me. 
 
The correct URL will be of the form <protocol>://<ProducerSite>/_vti_bin/cmissoapwsdl.aspx . 
 
Once you plug that in, you can press the “Get Repository List” button, which will call the RepositoryService.svc behind the scenes (you’ll be prompted in the UI to enter credentials that have access there…) and finally the “Select Repository” dropdown list will be populated with all of the libraries and lists found on the Producer site.
consumer web part properties 
At this point you’re basically done.  Click “OK” to save the property changes, and “Stop Editing” to finish you page editing, and then you should be looking at documents from the Producer site being displayed in the Consumer web part:
All done!

Thanks to Volkhard, Paul and Ryan for their assistance!
  
CMIS Consumer setup

Very helpful, thank you!  I also encountered the need to create a master encryption key for the secure store before wsdl authentication would work.

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

Anyone have a working .NET producer example​?

Name (required): Brian DeWyer
Created: 7/27/2010 4:46 PM
CMIS Consumer Setup

Yes , you would need the Secure Store Service Application configured  for this to work .

 

Name (required): Rajan Kapoor
Created: 8/5/2010 3:07 AM
OpenWorkdesk as CMIS consumer

If you're looking for a CMIS consumer to test a CMIS based business application on Sharepoint 2010 you can try the OpenSource Edition of our OpenWorkdesk-product which is in use by more than 10.000 users worldwide. www.openworkdesk.org

Regards

:-) stw

Stefan Waldhauser
CEO WeWebU Software

Name (required): Stefan Waldhauser
Created: 8/6/2010 3:25 AM
thank goodness
FINALLY! someone with a clear cut example of how to actually use this thing. ALL the other websites on the internet can say is that it IS available.

i've been stuck on clicking the Get repository List button after specifying the URL as your format had supplied, but now I just keep getting "Access denied" whatever user I use to login, regardless of whether it is the farm admin, a domain admin or a normal user.

can you verify that the user login details format will be like this:
DOMAIN\username ?

i'm putting the consumer web part on a sharepoint web application to point to a producer sharepoint web application on the exact same server so i thought the security should actually be negligible, but it doesn't seem the case.

i configured the secure store service to generate keys and whatever, but not sure what else configuration cmis webpart needs for it, if at all.

any assistance would be greatly appreciated.
Name (required): zara
Created: 9/16/2010 8:23 PM
CMIS Access Denied
Thanks for your excellent post. Unfortunately I get an access denied error described here:

​http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/c5f8d210-dd62-4318-8043-fbdb860913c2


Name (required): Peter
Created: 9/30/2010 6:50 PM
About the URI of AtomPub

​Hi Larry,

SharePoint 2010 annouced that it can support interfaces using SOAP and AtomPub. And from your artical, we can know that the URI for SOAP is "<protocol>://<ProducerSite>/_vti_bin/cmissoapwsdl.aspx", how about the URI for AtomPub?

By the way, do you know that there are some update for CMIS in SharePoint 2010 recently? If you know, can you share it with us.

In addition, I try to find some detail documents for CMIS connector of SharePoint 2010 in MSDN website, unfortunately, I can not find something useful. And if you know some useful resources for CMIS in SharePoint 2010, can you do me a favor to share it? Thanks very much!


Name (required): Charlie
Created: 10/25/2010 2:31 AM
CMIS Producer
Have you tried using the Producer at all?
I'm having trouble figuring out what the service doc URL would be, to get started w/ the REST Producer...

Name (required): Tanya Saarva
Created: 10/27/2010 1:52 PM
CMIS Producer
Have you tried using the Producer at all?
I'm having trouble figuring out what the service doc URL would be, to get started w/ the REST Producer...

Name (required): Tanya Saarva
Created: 10/27/2010 2:55 PM
"Access is Denied"

Every time I'm trying to get the repositories (same SiteCollection is the producer) I get an login dialog where no creadentials are working. If I'm using farm-administrators credentials, I just get "Access is denied".

The Secure Storage Provider is already configured and running (in this case I already used it for external contenttypes, so it should be configured correctly)​.

Did I miss something?

Name (required): Tim
Created: 2/16/2011 8:25 AM
If you got the error "The term Add-SPSolution is not recognized"
Run this command first:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction "SilentlyContinue"

Name (required): jeromesimard
Created: 5/12/2011 4:54 AM
Problem with CMIS Consumer

Hi,

I have a problem with the login to the producer site. I press the button "Get Repository List"​ and in the login box I use my correct Account, but I get the error message: Access denied.

Has anyone an idea what the problem is?

best regards.

Name (required): Sonia Z.
Created: 6/8/2011 2:15 AM
Re: Getting the CMIS Connector up and running in 2010-7a

Hi,

I have a problem with the CMIS Consumer. I can't login to the repository (on producer site).

I press the button "Get Repository List" and in the login box I use the correct account, but I get the error message: Access denied.

Has anyone an idea what the problem is?

Name (required): Sonia Z.
Created: 6/8/2011 2:20 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body (required) *

Name (required) *


URL

Type the Web address: (Click here to test)  

Type the description: 

CommentUrl


Attachments