Access SharePoint Remotely

  • 2,198 views
Uploaded on

This is my presentation in Cairo Code Camp Feb 2010. …

This is my presentation in Cairo Code Camp Feb 2010.
Learn how to write applications that access SharePoint content without installing code on the server. This session will explore the Client Object Model in its three different flavours, .Net, Javascript (ECMA Script) and Silverlight.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Good introduction.
    Here are some posts which I have written.

    Client Object Model: http://praveenbattula.blogspot.com/search/label/Client%20Object%20Model

    All SharePoint 2010: http://praveenbattula.blogspot.com/search/label/SharePoint%202010

    Samples and examples: http://praveenbattula.blogspot.com/2010/04/sharepoint-2010-managed-client-object.html

    thanks
    -Praveen.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
2,198
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • This diagram displays how the transport mechanism worksManage client OM = .NET / SilverlightAll communication goes through the client.svc WCF serviceMicrosoft implemented the client OM by decorating the core SharePoint OM with attributes if it was “client aware”[ClientCallableType(Name=“Web”,[…]),[…]]public class SPWeb {}Then a code gen tool generates the client OM assemblies and JavaScriptThis ensures that there’s fidelity between all the client OM’s and the server equiv

Transcript

  • 1. Access SharePoint Remotely
    Mohamed Yehia
    February 2010
  • 2. Ana Meen?
    Technical Architect
    www.mohamedyehia.net
    @mohdyehia
    myehia@live.com
  • 3. Why?
    SharePoint is used as:
    Data repository
    File sharing
    Social network
    Record management
    Collaboration
    Simply, make data available
    Integrate LOB
  • 4. Challenges
    SharePoint Object Model available on the server
    Web services require XML and CAML
    Major request to increase web services
    Different from server side code.
  • 5. Client Object Model
    Simple API
    an abstraction layer to return results as recognizable SharePoint objects
    .Net CLR
    Silverlight
    Javascript
  • 6. Under the Hood
    ECMAScriptControlsand Logic
    Browser
    JSONResponse
    Server OM
    ECMAScript OM
    Client.svc
    XMLRequest
    Proxy
    XMLRequest
    Proxy
    Contentdatabase
    Managed OM
    JSONResponse
    ManagedClient
    Managed Controls and Logic
    SharePointServer
  • 7. Not Another Object Model!
    Efficiency
    SQL Like
    Batch processing
    Network traffic
    Server Resources
    Productivity
  • 8. .Net CLR – Client Object Model
    Assemblies
    Path
    %ProgramFiles%Common FilesMicrosoft Sharedweb server extensions14ISAPI
    Microsoft.SharePoint.Client.dll
    Microsoft.SharePoint.Client.Runtime.dll. (145 kb)
    Compared to
    Microsft.SharePoint.dll (15.3 MB)
  • 9. demo
    .Net CLR – Client Object Model
  • 10. .Net CLR – Client OM, Tips
    ClientContext is the center of the universe
    Remember to always ExecuteQuery
    Use LINQ to load what you really need
    Use CamlQuery to access Lists
  • 11. Silverlight – Client Object Model
    Assemblies
    Path
    %ProgramFiles%Common FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTSClientBin
    Microsoft.SharePoint.Client.Silverlight.dll
    Microsoft.SharePoint.Client.Silverlight.Runtime.dll
  • 12. demo
    Silverlght– Client Object Model
  • 13. Silverlight – Client OM, Tips
    ExecuteQuery is always asynchronous
    Callback methods are executed on another thread
    Use Invokes to update the UI
  • 14. Javascript – Client Object Model
    Add link to SP.Js
    %ProgramFiles%Common FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTS
    Debug versions available
    Automatically adds
    SP.Core.js,
    SP.Runtime.js
  • 15. demo
    Javascript– Client Object Model
  • 16. Javascript– Client OM, Tips
    ExecuteQuery is always asynchronous
    Use jQuery
    Use with
    Applications Pages
    Dialog framework
    Web parts
  • 17. The Site is the Limit
    Anything under SPSite
    Create / delete subsites
    Create/ delete/ manage lists
    Create custom actions
    Create Fields
    Etc.
  • 18. Alternatives
    OOB Web Services
     ADO.NET Data Services
    sitrurl/_vti_bin/listdata.svc
    Develop your WCF/ Web services
  • 19. Learn More
    MSDN (http://MSSharePointDeveloper.com)
    TechNet (http://MSSharePointITPro.com)
    Twitter Search #SP2010
  • 20. Coming Sessions
    When MEF meets Silverlight – Amr El Sehemy
    What’s New in SharePoint Designer 2010 – Ayman El Hattab in C 7.02
    Session 4 : Architecture of SharePoint 2010 Alexander Meijers C 7.01
  • 21. Thanks
    www.mohamedyehia.net
    @mohdyehia
    myehia@live.com