Elczar 的个人资料Sharing Points { }照片日志列表 工具 帮助

日志


10月1日

WSS 3.0 Lists Web Service

 

The Windows SharePoint Services Web services provided by the Microsoft.SharePoint.SoapServer namespace includes methods that provide Microsoft .NET Framework developers with object models for creating solutions that work with Windows SharePoint Services remotely from a client or custom application. They are defined through the server-side object model of the Microsoft.SharePoint assembly, and their design is optimized to reduce the number of roundtrips transacted between client computer and server.

Most Web services are provided through the /_vti_bin virtual directory, which maps to the \\Program Files\Common Files\Microsoft Shared\web Server extensions\12\ISAPI physical directory. The Administration Web service is provided through the /_vti_adm virtual directory, which maps to \\Program Files\Common Files\Microsoft Shared\web Server extensions\12\ ADMISAPI physical directory.

The following table lists the available Web services:

 

Administration Service (admin.asmx) Permissions Service (permissions.asmx)
Alerts Service (alerts.asmx) Site Data Service (sitedata.asmx)
Copy Service (copy.asmx) Site Service (sites.asmx)
Document Workspace Service (dws.asmx) Search Service (spsearch.asmx)
Forms Service (forms.asmx) Users and Groups Services (usergroup.asmx)
Imaging Service (imaging.asmx) Versions Service (versions.asmx)
List Data Retrieval Service (dspsts.asmx) Views Service (views.asmx)

Lists Service (lists.asmx)

Web Part Pages Service (webpartpages.asmx)
Meetings Service (meetings.asmx)

Webs Service (webs.asmx)

People Service (People.asmx)  

As titled, this piece will focus on WSS 3.0 Lists Service. The following table lists the Web methods provided by the service to interact with our SharePoint list libraries:

 

AddAttachment GetListAndView
AddDiscussionBoardItem GetListCollection
AddList GetListContentType
AddListFromFeature GetListContentTypes
ApplyContentTypeToList GetListItemChanges
CheckInFile GetListItemChangesSinceToken
CheckOutFile

GetListItems

CreateContentType

GetVersionCollection
DeleteAttachment UndoCheckOut
DeleteContentType

UpdateContentType

DeleteContentTypeXmlDocument UpdateContentTypeXmlDocument
DeleteList UpdateContentTypesXmlDocument
GetAttachmentCollection UpdateList
GetList UpdateListItems

Now let us start with the walkthrough.

1. Create a SharePoint Web application.

2. Create an ASP.NET Web application and add a Web reference addressed to http://<SharePoint Web application URL>/_vti_bin/Lists.asmx. For demonstration purposes, let us name our Web reference as Proxy.

3. Write the following lines of code to an appropriate event:

Proxy.Lists proxy = new Proxy.Lists();

proxy.Credentials = CredentialCache.DefaultCredentials;

XmlNode xmlnode = proxy.GetListItems("Shared Documents", null, null, null, null, null, null);

XmlNodeReader xmlnodereader = new XmlNodeReader(xmlnode);

DataSet dataset = new DataSet();

dataset.ReadXml(xmlnodereader);

xmlnodereader.Close();

gvwList.DataSource = dataset.Tables[1];

gvwList.DataBind();

Thanks...

评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。
AdameElcza​r 在此页禁用了评论功能。

引用通告

此日志的引用通告 URL 是:
http://elczara.spaces.live.com/blog/cns!554EC06D366AC9D5!739.trak
引用此项的网络日志