Comsharepoint2013pdf

247
-1

Published on

SharePoint 2013

Published in: Software, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
247
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Comsharepoint2013pdf

  1. 1. Kamal Pandey Client Object Model & REST Improvements in SharePoint 2013
  2. 2. Who Am I? SharePoint Archtecte at L&T InfoTech LTD (New Yrok City , NY) Microsoft Certified Trainer (MCT) since 2011. MCSE SharePoint 2013 MCITP SharePoint Admin 2010, MCPD SharePoint Developer 2010 & MCTS SharePoint 2010 Configuration & Development MCTS WSS 3.0, SharePoint Server 2007, MCITP, MCTS Project Server 2007 & 2010, MCTS Project Professional 2007 & 2010, MCPD.NET, MCSD.NET MCAD.NET Email: kamalkismca@gmail.com
  3. 3. Agenda REST Summary Overview Client OM Intro Q & ADEMO
  4. 4. CSOM in 2010
  5. 5. CSOM in SharePoint 2010 Issues with CSOM • No Direct Access to client.svc Web Service • Must use a Proxy or Supported End Points • Supports .NET Silverlight & JavaScript Managed OM – Is Easy Silverlight OM? – Is Easy JavaScript OM? – Is Not Easy
  6. 6. C SharePoint 2010 CSOM Architecture Silverlight Library .NET CLR Library JavaScript Library /_vti_bin/client.svc Execute Query Server Client Custom Client Code
  7. 7. How CSOM works
  8. 8. CSOM Changes in 2013
  9. 9. Changes in SharePoint 2013 Client.svc with REST Clients • Direct Access to client.svc Web Service • Access HTTP GET, PUT, Merge, POST Requests • OData Implementation • Writing Code from NON Microsoft Apps • New APIs for Server Functionality • API for Windows Phone Development For More Information http://tinyurl.com/SP2013Odata
  10. 10. New CSOM API Support E-Discovery TaxonomySearch WorkflowSharing User Profiles Analytics PublishingFeeds IRM Business Data Lists Support both Server Side code and REST
  11. 11. C SharePoint 2013 CSOM Architecture Silverlight Library .NET CLR Library JavaScript Library _api Execute Query Server Client OData Custom Client Code
  12. 12. Changes in SharePoint 2013 CSOM • Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.RunTime.dll • Available in SharePoint Foundation • contains the core classes
  13. 13. Demo Managed Client OM
  14. 14. Demo JavaScript Client OM
  15. 15. REST Overview
  16. 16. What’s REST and Why? Simple and Easier to Use • Easier than SOAP Based WS’s • Higher Productivity using JavaScript and JQuery • Results as JSON and ATOM • Everything is URL • Results can be cached on Proxy Servers.
  17. 17. REST in SharePoint 2010
  18. 18. REST in SharePoint 2013 Replace • http://intranet/_vti_bin/client.svc/web with • http://intranet/_api/web/ • Lot more simple URL • Helps in 256 Character Limit of URLs in browser • ListData.svc is still there for backword compatiability • OLD Aps will still work but needs to be updated
  19. 19. Client OM and OData
  20. 20. What is OData? More Information @ http://www.odata.org/
  21. 21. OData Terms and Concepts OData Described in Entity Data Model by Collection Entity Set A Navigation Property on an entity type that identifies a collection of entities Entry Entry type Note: May be Part of a type Hierarchy Property of an Entry Primitive or complex Entity type property Complex Type Complex Type Link A Navigation Property defined on an entity type Service Operation Function Import
  22. 22. Methods will be mapped into eitherOData Maps CRUD Operations to HTTP Verbs OData Implementation Details More Information @ http://www.odata.org/
  23. 23. URLs Resource Path – SQL Table or Web or List
  24. 24. REST – Return ATOM XML vs. JSON ATOM-PUB XML • Verbose • Easier to Read • ACCEPT = application/atom+xml • Condensed notation • Smaller payload • ACCEPT = application/json;odata=verbose;
  25. 25.  Example REST URLS  http://Intranet.consoto.com/_api/web/  http://Intranet.consoto.com/_api/web/Lists  http://Intranet.consoto.com/_api/web/Lists/getByTitle(‘Customers’)  http://Intranet.consoto.com/_api/web/getAvailableWebTemplates(lcid =1033  http://Intranet.consoto.com/_api/web/  http://intranet.consoto.com/_api/web/Lists/getByTitle(‘Customers’)/Ite ms(0)/?$select CustomerName,CustomerId,Address Managing Objects to Resources
  26. 26. Demo : REST in Browser
  27. 27. Summary CSOM Now Covers More Important for App Development REST Improved Syntax Easy to Use with JavaScript than C#
  28. 28. Some Great Resources  http://msdn.microsoft.com/en-us/library/jj164060.aspx  http://msdn.microsoft.com/en-us/library/jj163201.aspx  http://msdn.microsoft.com/en-us/library/jj164022.aspx  http://msdn.microsoft.com/en-us/library/jj163800.aspx  http://msdn.microsoft.com/en-us/library/fp142385.aspx  http://msdn.microsoft.com/en-us/library/fp142380.aspx  http://msdn.microsoft.com/en-us/library/fp142386.aspx  http://msdn.microsoft.com/en-us/library/jj193034(v=office.15).aspx  http://code.msdn.microsoft.com/office/SharePoint-2013-Perform-a- 1bf3e87d/view/SourceCode#content  http://msdn.microsoft.com/en-us/library/jj860569.aspx
  29. 29. Thank You
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×