
Leveraging the SharePoint
ListsWeb Service
This chapter explores the uses of the built-in SharePoint web services, namely the Lists web
service. When creating applications that run outside of the SharePoint environment but need
access to SharePoint lists, the use of the Lists web service is a must. In this chapter, the web
service is explained along with several common operations that you usually need to perform.
WEB SERVICES OVERVIEW
Web services can be considered data sources accessible via http. Using a URL, you may easily
retrieve data by performing web method queries. SharePoint has built-in system web services
that it uses internally but may also be used for custom programming purposes.
SharePoint Web Services Introduction
The SharePoint web services are implemented as ASP.NET Web Services (.asmx). Various
web services provide SharePoint functionality and administrative tasks, which are all physi-
cally located within the ISAPI folder of the “14” hive. You can access them via IIS by using a
virtual directory named
_vti_bin associated to each SharePoint web application, as shown
in Figure4-1. You may view the available web methods for each web service by using the
virtual directory and web service within the browser, as shown in Figure4-2.
Instantiating a Web Service
You may reference the SharePoint web services within your Visual Studio 2010 project and
accordingly instantiate ...