步步高笔记本电脑,步步为营 SharePoint 开发学习笔记系列 八、SharePoint web service 开发(上)

概要
    Sharepoint中提供了很多开箱即用的Web Service,使用这些web service我们可以进行远程调用, 在"web server extensions\12\ISAPI"(其通常位于C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI")之下的"Microsoft Shared"目录中有大部分Web Services的物理文件。用于管理中心工具的管理Web Service位于ADMISAPI文件夹中,其在管理中心控制台里是一个名为"_vti_adm"的虚拟目录。当你创建了一个SharePoint站点时,它将包含一个名为"_vti_bin"的虚拟目录,以指向这个位置。IIS不为子站点包含任何应用程序或虚拟目录,它们只是包含通过 SharePoint元数据和HttpModules实现的对_vti_bin虚拟目录的映射。
 
先看下Lists.asmx中的一些常用功能
/// /// Class that holds the properties for each result returned by the UpdateListItems webservice /// public class SingleResultBE { public string Id { get; set; } public string Operation { get; set; } public string ErrorCode { get; set; } public int ListItemId { get; set; } public string Title { get; set; } public DateTime Modified { get; set; } public DateTime Created { get; set; } public int Attachments { get; set; } public int ModerationStatus { get; set; } public string ErrorMessage { get; set; } public string ListItemGuid { get; set; } public string FileDirRef { get; set; } public string FileRef { get; set; } public string ServerUrl { get; set; } public string EncodedAbsUrl { get; set; } public string BaseName { get; set; } public const string NO_ERROR = "0x00000000"; public const string Exist_ERROR = "0x8107090d"; }
 
 
返回结果集里的ErrorCode是0x00000000表示插入成功,如果是0x8107090d表示插入的item己经存在。
 
接下来我们讲解update item做法和UserGroup的用法
 
作者:spring yang
出处:http://www.cnblogs.com/springyangwc/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
Tags:  步步高笔记本 步步高笔记本电脑

延伸阅读

最新评论

发表评论