Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary.

Similar presentations


Presentation on theme: "Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary."— Presentation transcript:

1

2 Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary

3

4 Goal: Consistent object model rather than more services! Easier to use than SharePoint Web Services Consistent with server side object model Consistent developer experience across platforms Abstraction layer, recognizable objects, fewer calls Subset of the Microsoft.SharePoint object model Scoped to SiteCollection and lower Smaller libraries are more efficient Supports.NET, Silverlight, JavaScript

5 Site Collections and Sites Lists, List Items, Views, and List Schemas Files and Folders Web, List, and List Item Property Bags Web Parts Security Content Types Site Templates and Site Collection Operations Note: Restricted to SPO features!

6 Server (Microsoft.SharePoint).NET Managed (Microsoft.SharePoint.Client) Silverlight (Microsoft.SharePoint.Client.Silverlight) ECMAScript (SP.js) SPContextClientContext SPSiteSite SPWebWeb SPListList SPListItemListItem SPFieldField Member names mostly the same from server to client (e. g., SPWeb.QuickLaunchEnabled = Web.QuickLaunchEnabled)

7 Client.svcClient.svc Server OM Content database ECMAScript OM ProxyProxy Managed OM ProxyProxy Managed Controls and Logic ECMAScriptControlsand Logic XML Request JSON Response Browser Managed Client SharePoint Server

8 SPO restricted to Site Collection data Can’t call external web services BCS is not supported Silverlight/JavaScript can call external services Call external WCF/Web/REST/ODATA services Leverage Azure/AzureData/AppFabric Leverage On-Premise via Azure Service Bus Client Object Model provides SPO access Mash Up SPO and external data/services

9

10 Reference Silverlight libraries Microsoft.SharePoint.Client.Silverlight Microsoft.SharePoint.Client.Silverlight.Runtime Microsoft.SharePoint.Client namespace Hosting Options Silverlight Web Part Custom Web Part ASPX page Custom Web Part Custom properties via InitParams XAP file deployed via module

11

12

13 Added to a SharePoint ASPX Located in _layouts/sp.js SP is the core namespace All libraries crunched for performance Un-crunched *.debug.js for debugging Differences from.NET/SL Signatures Data Value Types Integrate JQuery for more sophisticated apps

14

15

16 Supported for backwards compatibility Client Object Model is preferred Supported Web Services list http://msdn.microsoft.com/en- us/library/gg454740.aspx

17

18 Client Object Model provides convenient/powerful access to SPO Consistent with server side object model Consistent developer experience across platforms Abstraction layer, recognizable objects, fewer calls Subset of the Microsoft.SharePoint object model Scoped to SiteCollection and lower Smaller libraries are more efficient Supports.NET, Silverlight, JavaScript Provides access to external services/data Call external WCF/Web/REST/ODATA services Leverage Azure/AzureData/AppFabric Leverage On-Premise via Azure Service Bus

19 Lab 4.1: Silverlight Lab 4.2: JavaScript Lab 4.3: List.asmx

20 Silverlight 4 Training Kit http://channel9.msdn.com/learn/courses/Silverlight4/ Getting Started With Silverlight http://expression.microsoft.com/en-us/dd565865.aspx SharePoint 2010 Training Kit - Client Object Model http://channel9.msdn.com/learn/courses/SharePoint20 10Developer/ClientObjectModel/ Microsoft Patterns & Practices – SharePoint 2010 http://msdn.microsoft.com/en-us/library/ff770300.aspx

21 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary."

Similar presentations


Ads by Google