SlideShare a Scribd company logo
Developing against SharePoint ListsOnne ZuurOnne.Zuur@ordina.be
SharePoint ConsultantCompetence Center LeaderBlog:MySharepointDevelopment.Blogspot.comEmail:Onne.Zuur@Ordina.be
AgendaIntroductionSharePoint List APIs/ServicesWhen to use?Demo’sSummary3
IntroductionMore / additional information of interacting listsReading and writing itemsExplanation of the different API’sWays to develop against list4
SharePoint List APIs/ServicesServer-side object modelClient object modelWCF Data ServicesList Web ServicesCustom WCF Service / ASP.NET service
Server-Side Object ModelEasy to useUsing Microsoft.SharePoint.dllCore SharePoint DLLApplication deployed to or reside on the server6
Demo Server-Side Object modelDEMO7
Client Object ModelClient-based DLLAccess to SharePoint content from key client technologies.Net, Silverlight, Javascript,Not able to use  from non Microsoft platformSimilar to the server-side object modelEasy to move from client-side to server-side developmentCombining with sandboxed solutionsSharePoint Online Development8
Demo Client Object ModelDEMO9
WCF Data ServicesREST (Representational State Transfer)-based serviceLightweight get and post functionalityInteracting with Excel spreadsheetsManipulate SharePoint data from different platforms10
Demo WCF Data ServicesDEMO11
List Web ServicesASP.NET Web ServiceFor rapid development and deploymentService based applicationFor backward compatibility When possible, avoid this serviceMigrating from pre-SharePoint 2010 to SharePoint 2010Ex. /vtI_bin/Lists.asmx     /vti_bin/Copy.asmx12
Demo List Web ServicesDEMO13
Custom WCF service / ASP.NET ServiceCustom requirementsEasy to realise instead of 200714
SummaryBest practicesAvoid use of list web servicesMigrationClient Object Model is the best choice in most of the casesSharePoint Online DevelopmentEasy to implement Custom WCF Services in SharePoint 201015
Follow Ordina….16Share your thoughts via #SOFTC Follow us on twitter: @OrdinaBEFind the presentationsonwww.slideshare.net/ordinaBeBe informed atwww.linkedin.com/company/ordina-belgium

More Related Content

PPTX
Apps for SharePoint
PPTX
Share Point Object Model
PPTX
Office 2013 loves web developers slide
PPTX
Migrating Asp Net Apps T03 Paul Stork
PDF
Sviluppare app per office
PPTX
So You Want to Be a SharePoint Developer - SPS Utah 2015
PPTX
Sharepoint 2010 Object model topology
PPTX
Getting Started With the TFS Object Model
Apps for SharePoint
Share Point Object Model
Office 2013 loves web developers slide
Migrating Asp Net Apps T03 Paul Stork
Sviluppare app per office
So You Want to Be a SharePoint Developer - SPS Utah 2015
Sharepoint 2010 Object model topology
Getting Started With the TFS Object Model

What's hot (20)

PPT
Sharepoint2
PPTX
Working with a super model for SharePoint Tuga IT 2016
PPTX
What's New for SP2010 Devs
PPT
Introduction to the Client OM in SharePoint 2010
PPTX
SharePoint Saturday/Friday Honolulu
PPT
3 lists, libraries, share point designer, business intelligence
PPTX
Going offline with share point workspace
PPTX
Access SharePoint Remotely
PPSX
Willie jackson portfolio
PPT
2 workflows, search, disaster recovery
PPTX
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
PPTX
SP2010 Developer Tools
PPT
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
PPT
1.2 introduction
PPTX
SharePoint 2010 as a Development Platform, Ayman El-Hattab MVP
PPTX
Publish and subscribe platform events using flows
PDF
Oracleapex 150914085107-lva1-app6892
PPTX
SPCA2013 - SharePoint 2013 Office Integration
PPTX
Word on the Server
PDF
Hooking SharePoint APIs with Android
Sharepoint2
Working with a super model for SharePoint Tuga IT 2016
What's New for SP2010 Devs
Introduction to the Client OM in SharePoint 2010
SharePoint Saturday/Friday Honolulu
3 lists, libraries, share point designer, business intelligence
Going offline with share point workspace
Access SharePoint Remotely
Willie jackson portfolio
2 workflows, search, disaster recovery
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
SP2010 Developer Tools
TERMINALFOUR t44u 2008 - Piero Tintori - Integration Publishing To Share Poin...
1.2 introduction
SharePoint 2010 as a Development Platform, Ayman El-Hattab MVP
Publish and subscribe platform events using flows
Oracleapex 150914085107-lva1-app6892
SPCA2013 - SharePoint 2013 Office Integration
Word on the Server
Hooking SharePoint APIs with Android
Ad

Similar to Ordina SOFTC Presentation - Developing against SharePoint 2010 Lists (20)

PPT
SharePoint 2010 and its development tools
PPTX
Session 7 - Integrating share point with silverlight firestarter
PPTX
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
PPTX
Intro to SharePoint for Developers
PPTX
Solve Todays Problems with 10 New SharePoint 2010 Features
PPTX
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
PPTX
SharePoint 2010 Developer 101
PPT
Integrated Proposal (Vsts Sps Tfs) - MS stack
PPTX
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
PPTX
SharePoint Fest Chicago - SharePoint 2010 Integration and Interoperability: W...
PPTX
SharePoint 2010 developer overview (in Visual Studio 2010)
PPTX
Creating No Code Solutions For Sp 2010 Ayman El Hattab
PPTX
Session 5-SharePoint with Office-Donovan Follette
PPSX
SharePoint 2010 Integration and Interoperability: What you need to know
PPT
SharePoint Developer Education Day Palo Alto
PPT
Sharepoint 2010 enterprise content management features
PPTX
2010 - Developer look at the Client Object Model
PPTX
SharePoint Fest Denver - SharePoint 2010 Integration and Interoperability: Wh...
PPTX
SharePoint Fest Denver - SharePoint 2010 Integration and Interoperability: Wh...
PPTX
Best Practices - SharePoint 2010: Integration and Interoperability
SharePoint 2010 and its development tools
Session 7 - Integrating share point with silverlight firestarter
So You Want To Be A SharePoint Developer-SPS Silicon Valley 2015
Intro to SharePoint for Developers
Solve Todays Problems with 10 New SharePoint 2010 Features
SharePoint Connections Coast to Coast Developer Boot Camp Crash Course v3
SharePoint 2010 Developer 101
Integrated Proposal (Vsts Sps Tfs) - MS stack
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
SharePoint Fest Chicago - SharePoint 2010 Integration and Interoperability: W...
SharePoint 2010 developer overview (in Visual Studio 2010)
Creating No Code Solutions For Sp 2010 Ayman El Hattab
Session 5-SharePoint with Office-Donovan Follette
SharePoint 2010 Integration and Interoperability: What you need to know
SharePoint Developer Education Day Palo Alto
Sharepoint 2010 enterprise content management features
2010 - Developer look at the Client Object Model
SharePoint Fest Denver - SharePoint 2010 Integration and Interoperability: Wh...
SharePoint Fest Denver - SharePoint 2010 Integration and Interoperability: Wh...
Best Practices - SharePoint 2010: Integration and Interoperability
Ad

More from Ordina Belgium (16)

PPTX
Ordina SOFTC Presentation - UsingGeoData_ReportBuilder
PPTX
Ordina SOFTC Presentation - SQL CLR
PPTX
Ordina SOFTC Presentation - SharePoint - Automated scripted deployment
PPTX
Ordina SOFTC Presentation - SharePoint 2010 Architecture
PPTX
Ordina SOFTC Presentation - Office 365
PPTX
Ordina SOFTC Presentation - Desktop Virtualization
PPTX
Ordina SOFTC Presentation - Demand management using workflow Project Server 2010
PPTX
Ordina SOFTC Presentation - Demand management using workflow Project Server 2010
PPTX
Ordina SOFTC Presentation - Bridging the project and work management gap
PPTX
Ordina SOFTC Presentation - Visual Studio LightSwitch
PPTX
Ordina SOFTC Presentation - Async CTP
PPTX
Ordina SOFTC Presentation - Building a WP7 app - Lessons learned
PPTX
Ordina SOFTC Presentation - Windows Phone 7 and the cloud
PPTX
Ordina SOFTC Presentation - Moving a legacy application into the cloud
PPTX
Ordina SOFTC Presentation - Deployment with TFS Build and Workflow
PPTX
Ordina SOFTC Presentation - TFS and JAVA, better together
Ordina SOFTC Presentation - UsingGeoData_ReportBuilder
Ordina SOFTC Presentation - SQL CLR
Ordina SOFTC Presentation - SharePoint - Automated scripted deployment
Ordina SOFTC Presentation - SharePoint 2010 Architecture
Ordina SOFTC Presentation - Office 365
Ordina SOFTC Presentation - Desktop Virtualization
Ordina SOFTC Presentation - Demand management using workflow Project Server 2010
Ordina SOFTC Presentation - Demand management using workflow Project Server 2010
Ordina SOFTC Presentation - Bridging the project and work management gap
Ordina SOFTC Presentation - Visual Studio LightSwitch
Ordina SOFTC Presentation - Async CTP
Ordina SOFTC Presentation - Building a WP7 app - Lessons learned
Ordina SOFTC Presentation - Windows Phone 7 and the cloud
Ordina SOFTC Presentation - Moving a legacy application into the cloud
Ordina SOFTC Presentation - Deployment with TFS Build and Workflow
Ordina SOFTC Presentation - TFS and JAVA, better together

Ordina SOFTC Presentation - Developing against SharePoint 2010 Lists

Editor's Notes

  • #8: When you’re developing applications that running on the server, you can leverage the server-side OM that is exposed using the microsfot.Sharepoint.dll. For example A simple WPF based application.Tooks a number of string inputs from the WPF UI and used the serverside OM. The code leverages the using statements to set the context for the sharepoint site and then sets the Web to allow updates? Creates an SPList object and SPListitem object, and the proceeds to set the specific column fields with the data that was entered . By the users Finally, the update methode is called to add the data tot the list.
  • #9: Client Object Mode (OM)I think Client Object Model is the best choice in most of the cases. If you want to access SharePoint data from SharePoint webpart, then you can use Client OM (EcmaScript) to access data in SharePoint. If you are trying to access SharePoint data from Silverlight then you can use Client OM for Silverlight. And most of all you can use Managed Client OM, in supported .net language to access SharePoint data. So Client OM is surely your first choice. But in many cases you can’t use Client OM, especially in cases where you are trying to access SharePoint data from non-Microsoft platform, like Java. Also if your migrating your application from SharePoint 2003/2007 and you are already using asp.net web service, then you don’t have much choice but to use the legacy web services.
  • #10: How it worksFor both of the previous exercises, You used the client side object model to read data from sharepoint list and write back to the sme list. In many ways, the undelaying calls for sharepoint don’t necessarily change. For example, the client object model leverage the services that are native to sharePoint beneath the covers to make the call into sharepopint . However, this is abstracted away from you.
  • #11: SharePoint WCF Services (REST-based)The new addition of extensibility point in SharePoint 20l10 is WCF services. If you are planning to manipulate SharePoint data from different platforms, like Java, then these WCF services are the excellent option to go with. If you install WCF data service updates, then these WCF services enable REST-based request processing. For more information on REST-based interface of SharePoint WCF services, please follow the MSDN link. You can also use these WCF services from .net applications. You can get the help from MSDN on how to use these WCF services in .net applications. Few new WCF services available in SharePoint 2010, are listed below:/_vti_bin/ListData.svc/_vti_bin/Client.svc
  • #12: How it works.The RESTfull services work in a slightly different way than the other ways you’ve seen in this chapter.Specifically , they leverage the listdata svc service and Data services to treat SharePoint lists as data constructors.The querying against the list works similarly to other ways in which you querying entities. You use linq as the standard way to query and filter the data, and then manipulate the data into your application.
  • #13: Asp.Net Web ServicesSharePoint 2007 comes with built-in web services. These legacy web services are still in SharePoint to support backward-compatibility but whenever you have the option to avoid them, please do so. The only reason I see to use these legacy web services is for applications migrating from pre-SharePoint 2010 to SharePoint 2010. Maybe this is the last version of SharePoint with the support of the legacy web services (at least I hope so). Few legacy asp.net services are listed below:/_vit_bin/Lists.asmx/_vit_bin/Copy.asmxCalls the lists from Various ways of client - applications
  • #15: Custom WCF ServiceIn real world, we rarely happy with out of the box functionalities. We need to customize a lot to happy our clients. Similarly we may need to develop our own WCF services. Writing a custom asp.net web service in SharePoint 2007 was a very difficult task. But in SharePoint 2010, writing a custom WCF service is much easier now. If you install Community Kit for SharePoint (CKS) Visual Studio extension from CodePlex, you can develop a custom SharePoint Service easily. There’s also manual process of developing custom WCF Server in SharePoint described in MSDN: WCF Services in SharePoint and Creating Custom WCF Service. I’ll try to post more details on how to use CKS add-in to develop custom WCF service in another post.