Friday 4 July 2014

Remote Clients for SharePoint 2010

SharePoint 2010 supports remote clients accessing objects on the SharePoint platform using the client object model. This allows various types of remote clients to access and manipulate SharePoint data without those clients having to run on the SharePoint platform.
The following table describes the various remote client applications
Microsoft .NET applications:
.NET applications can interact with SharePoint objects by using the .NET implementation of the client object model.
.NET applications that can use the client object model include:
• Console applications
• Windows Forms applications
• Windows Presentation Foundation applications
• ASP.NET Web applications and Web services
These applications instantiate a ClientContext object and use the URL of a SharePoint site in the constructor of that object. Typically, applications then make use of the Site objects, Web objects, and List objects to interact with SharePoint. These objects are client-side versions of the SPSite, SPWeb, and SPList objects that are available on in the server-side object model.
The communication between the client application and the SharePoint server takes place over Extensible Markup Language (XML) and JavaScript Object Notation (JSON).
Silverlight applications
Silverlight applications offer a rich user interface that can be hosted in a Web page within the SharePoint site, or even in a non-SharePoint site. Furthermore, Silverlight applications can run outside of the browser environment completely.
With any of the deployment environments, Silverlight applications actually run in their own local .NET environment.
Silverlight applications, therefore, use the Silverlight implementation of the client object model to communicate with SharePoint objects and data. The objects, methods, properties, and events in the Silverlight implementation of the client object model are extremely similar to those in the .NET implementation of the client object model.
JavaScript applications
JavaScript applications can also make use of a similar client object model approach to .NET and Silverlight applications. However, the actual implementation details differ. The capability to communicate with the server-side service that handles client requests is contained in the following files:
• SP.js
• SPCore.js
• SP.Runtime.js
These files have been compressed for performance reasons, but corresponding uncompressed versions are available to help you debug your solutions.