Why do we need Client Object Model

This article describes the real need of Client Object Model in SharePoint 2010.Client Object Model is one of the new feature added in SharePoint 2010. Clinet Object Model reduces the burden on developers.

1. Why do we need Client Object Model ? / Why Client Object Model evolved?

Microsoft was constantly getting request from customers for more web-services. to make it easier to get data from outside of SharePoint (for example : to show SharePoint data on your desktop, by consuming a web-services), So there are two options: 1) Request Microsoft to produce more web services or 2) Create your own custom web services, Instead creating more and more web services over and over again in each release, Microsoft came up with a different approach , they created something called 'Client Object Model'.

2.Client Object Model comes in three flavors:

a. .NET web services
b. ECMAScript(JavaScript)
c. Silverlight

3.Where SP Client Object Model can be used to get data :

a.Site Collections and Sites
b.Lists,List Items,Views, and List Schema
c.Files and Folders
d.Web,List, and List Item Property bags
e.Web parts
g.Content Types
h.Site Templates and Site Collection Operation

SharePoint 2010 allows using its Object model to run against a server running SharePoint. For clients (not running SharePoint in the box), the simplest way to communicate with SharePoint server is web services. SharePoint Client Object Model (OM) can be run on client PC (where SharePoint is not installed) to communicate with SharePoint server. So whereas SharePoint (Server) Object Model runs in a SharePoint server and can manipulate SharePoint objects, client OM can run in client PC and communicate with SharePoint server remotely.


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: