SharePoint SOAP API Reference
SharePoint SOAP API Reference
SharePoint Team Services exposes SOAP-based web services for remote administration and data access. These services are accessible at http://site/_vti_bin/.
Available Web Services
| Service | URL | Purpose |
|---|---|---|
| Lists | /_vti_bin/Lists.asmx | CRUD operations on lists and list items |
| Views | /_vti_bin/Views.asmx | Manage list views |
| Webs | /_vti_bin/Webs.asmx | Site and subsite management |
| UserGroup | /_vti_bin/UserGroup.asmx | User and group management |
| Imaging | /_vti_bin/Imaging.asmx | Picture library operations |
| SiteData | /_vti_bin/SiteData.asmx | Site content retrieval (used by search crawlers) |
Lists.asmx Key Methods
| Method | Description |
|---|---|
| GetList | Returns schema and properties of a list |
| GetListItems | Returns items from a list (supports CAML query) |
| UpdateListItems | Insert, update, or delete list items |
| AddList | Create a new list |
| DeleteList | Delete a list |
| GetListCollection | Returns all lists in the site |
CAML Query Example
The GetListItems method accepts a CAML (Collaborative Application Markup Language) query to filter and sort results:
<Query>
<Where>
<And>
<Eq>
<FieldRef Name="Status" />
<Value Type="Choice">Active</Value>
</Eq>
<Geq>
<FieldRef Name="DueDate" />
<Value Type="DateTime">2001-01-01T00:00:00Z</Value>
</Geq>
</And>
</Where>
<OrderBy>
<FieldRef Name="DueDate" Ascending="TRUE" />
</OrderBy>
</Query>
SOAP Envelope Structure
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>Tasks</listName>
<query>
<Query><Where>...</Where></Query>
</query>
<rowLimit>100</rowLimit>
</GetListItems>
</soap:Body>
</soap:Envelope>