Taxonomy Term Store:
- Go to the Central Administration->Application Management->Manage Service Applications.

- Click on the Managed Metadata Service.
- You will enter into the Term Store Management Tool.
- On the left hand side you could see Taxonomy Term Store.
- First we will create a group for the Term Sets.

- Click on the Managed Metadata Service a New Group menu appears.
- Click on the New Group.
- Enter the name for the group as Sharepoint.
- Now click on the Sharepoint a menu will appear.

- Select New Term set.
- Enter the name for the Term Set as Analysis.
- Now click on the Analysis a menu will appear.
- Select Create Term and enter the name .

- Now we have created Group, Term Set and Terms for the service.

Creating Content Type Hub:
SharePoint
2010 introduces a new concept called Content Type Hubs. It's a way to
make content types available centrally and be reusable in the Farm. This
is a huge improvement from SharePoint 2007 both in terms of management
of content types and overall flexibility that comes with it. In
SharePoint 2007 there is no way to manage Content type centrally. To
share Content Type across site collection level or web application level
in SharePoint 2007, you need to copy the same content type in different
site collections or web applications. Another way could be to use web
feature to enable content type across site collections or web
applications. SharePoint 2010 has provided out of the box support for
sharing Content Types across farm level.
Content Type Hubs
enables you to create new content types and then make them available to
other SharePoint site collections in the same or different web
applications or across farms. This is a publisher-subscriber model,
where content types are published by the Content Type Hubs using
Metadata service and subscribers are the web applications in the
SharePoint Farm. Finally, all the site collections in the web
application which subscribe to this Metadata service will get this
content type.
Configuring the Content Type Hub:
Publish Content Type:
The
Enterprise Metadata Management Service or Metadata Service (in short),
allows sharing Metadata and Content Type across the farm. To share
Content types you need to define the content type(s) in a site
collection. You can consider the site collection as the place where
you'll put all your related content types to share across farm. This
site collection, which is used to host content types or sharing, is
called Content Type Hub.
1. Create a new Content Type in a site collection that to be shared:
First
select a site collection as a place to host your content types. You
will define your content types to share across farm. Given below are the
following steps to be followed to create a new content type that has to
be shared.
Steps Involved:
-
Go to the site collection where you want to host your content Type.
-
Go to Site Actions -> Site Settings -> Galleries ->Site Content Types.
-
In the top right you can see Create, click Create.
-
Enter the name of the content type as Parent Content Type as shown in the figure below.
-
Click OK to create a new content type named Parent Content Type.
-
Go to Site Content Type Information and click Add from New Site Column.
-
Enter the name for the column as Category - Metadata and choose the type of information as Managed Metadata as shown in the figure below.
-
Choose the term set that we have already created when configuring the Managed Metadata service and click ok.
-
A new field has been added to the content type.
2. Activate feature to enable content publishing in site collection:
The
site collection, which will host content types for sharing, is known as
content type hub. To enable your site collection to be a content type
hub you need to activate a feature known as "Content Type Syndication
Hub".
Steps Involved:
-
Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.
-
Activate the feature Content Type Syndication Hub.
-
Once you have activated this feature, you will find an option "Manage Publishing for this content type" in your content type setting page as shown below:

Bind content type hub with a metadata service
-
Go to the Central Administration->Application Management->Manage Service Applications.
-
Select the Managed Metadata service and in the Ribbon Select the Properties.
-
There's an option for Content Type Hub and here put the url of your site collection where the content type is created.
-
Configure Metadata Connection:
To configure metadata connection, go to metadata service connection
properties and ensure that the connection consumes the content type hub
as shown below.

Publish the Content Type:
Now
you go back to the site collection (which is used as content type hub)
and go to content type settings page. Here in this page you will get the
option "Manage publishing for this content type" option. Now click on
the link "Manage Publishing for this content type" and ensure the
'publish' option is selected and then click OK as shown below.
Exchange trust certificates between farms:
In
Microsoft SharePoint Server 2010, a SharePoint farm can connect to and
consume a service application that is published on another SharePoint
Server 2010 farm. For this to occur, the farms must exchange trust
certificates. You
must use Windows Power Shell 2.0 commands to export and copy the
certificates between farms. After the certificates are exported and
copied, you can use either Windows Power Shell 2.0 commands or Central
Administration to manage the trusts within the farm. To exchange trust
certificates between farms the following steps should be followed.
Steps Involved:
-
Exporting and copying certificates
-
Managing trust certificates
Exporting and copying certificates:
An
administrator of the consuming farm must provide two trust certificates
to the publishing farm: a root certificate and a security token service
(STS) certificate. An administrator of the publishing farm must provide
a root certificate to the consuming farm.
To export the root certificate from the consuming farm:
-
In the consuming farm go to Start menu.
-
Go to SharePoint 2010 Management Shell and select Run as Administrator.
-
In the command prompt, type each of the following commands.
|
$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export("Cert") | Set-Content "C:\Users\554pa\ConsumingFarmRoot.cer" -Encoding byte
|
To export the STS certificate from the consuming farm:
- In the Command Prompt, type each of the following commands.
|
$stsCert = (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
$stsCert.Export("Cert") | Set-Content "C:\Users\554pa\ConsumingFarmSTS.cer" -Encoding byte
|
To export the root certificate from the publishing farm:
-
In the Command Prompt, type each of the following commands.
|
$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export("Cert") | Set-Content "C:\Users\554pa\PublishingFarmRoot.cer" -Encoding byt
|
To copy the certificates:
- Copy the root certificate and the STS certificate from the server in the consuming farm to the server in the publishing farm.
- Copy the root certificate from the server in the publishing farm to a server in the consuming farm.
Managing Trust Certificates:
Establishing trust on the consuming farm:
- To import the root certificate and create a trusted root authority on the consuming farm, type the following commands.
|
$trustCert = Get-PfxCertificate "C:\Users\554pa\PublishingFarmRoot.cer"
New-SPTrustedRootAuthority "MetadataPublishingFarm" -Certificate $trustCert
|
Establishing trust on the publishing farm:
- To import the root certificate and create a trusted root authority on the publishing farm, type the following commands.
|
$trustCert = Get-PfxCertificate "C:\Users\554pa\ConsumingFarmRoot.cer"
New-SPTrustedRootAuthority "MetadataConsumingFarm" -Certificate $trustCert
|
- To import the STS certificate and create a trusted service token issuer on the publishing farm, type the following commands.
|
$stsCert = Get-PfxCertificate "C:\Users\554pa\ConsumingFarmSTS.cer"
New-SPTrustedServiceTokenIssuer "MetadataConsumingFarm" -Certificate $stsCert
|
copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.
Publish a Service Application:
- Go to the Central Administration->Application Management->Manage Service Applications.
- In the Ribbon click on Publish to create a new Metadata Service.
- Publish Service application will be opened.

- Select the Connection Type that you want from the drop-down list.
- If you want the service application to be available to remote farms, select the check box for Publish this Service Application to other farms.
- In the Trusted farms column click the link you could see the trust relationship between farms that we have created
Set permission to the published service application for a consuming farm:
- In the publishing farm go to Start menu.
- Go to SharePoint 2010 Management Shell and select Run as Administrator.
-
In the command prompt, type each of the following commands.
-
The above command is used to get the farm id.
-
Save the farm id.
-
Go to the Central Administration->Application Management->Manage Service Applications.

-
Click on Managed Metadata Service.

-
In the Ribbon select Permissions.

-
Enter the farm id that you got from step 3 and click Add.
-
In Permissions for Local Farm, select the Full Access to Term Store.
-
Click OK.
Connect to a service application on a remote farm:
- In the consuming farm, go to the Central Administration->Application Management->Manage Service Applications.

- In the Ribbon click on Connect.

- Enter the URL that we got when we published the Managed Metadata Service in the publishing farm.

- Click OK.

- Click the Managed Metadata Service and check the Add this service application's proxy to the farm's default proxy list.
- Click OK.

- Enter the Connection Name and click OK.
- Now go and check it in the Central Administration->Application Management->Manage Service Applications.

- You could see the Service application that we have published in the publishing farm.
Associate the service application connection with a local Web application:
To use the published content type and the Taxonomy that we have created in the publishing farm you need to activate the Content Type Syndication Hub and the taxonomy feature.
I have created web application in the consuming farm and I am going to
use the published content type and the taxonomy in the root Site Collection of the Web Application that has been created. Follow the steps below.
Steps Involved:
- Go to the site collection where you want to use the published content Type Parent Content Type that we have created in the publishing farm.
- Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.
- Activate the feature Content Type Syndication Hub.
- Go to Site Actions -> Site Settings -> Galleries ->Site Content Types.

- You will not find the content type and you cannot use the taxonomy that we have created.
- Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.
- You will not be seeing Content Type Publishing option.
- When
you try to use the Managed Metadata column type you may get an error
saying "The Taxonomy feature (Feature ID
"73EF14B1-13A9-416b-A9B5-ECECA2B0604C") has not been activated".
Activating the Taxonomy Feature using Power Shell:
- In the consuming farm go to Start menu.
- Go to SharePoint 2010 Management Shell and select Run as Administrator.
- In the command prompt, type each of the following commands.
|
Enable-SPFeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -URL http://kijs01:4000/
|
- http://kijs01:4000/- is the site collection in the consuming farm.
- Now you have activated the Taxonomy Feature.
- Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.

- You will be able to see Content Type Publishing.

- Click on that you could see the Parent Content Type as shown in the above figure and also you could go to Site Actions -> Site Settings -> Galleries ->Site Content Types.


Summary:
In
this document we have created Managed Metadata Service in the
publishing farm and we have consumed the data from that in the consuming
farm.