sharepoint webservice getListFieldInternalName
2009-11-24 13:33
399 查看
sharepoint webservice getListFieldInternalName
… SharePoint_FAQ_Lists.Lists ls = new SharePoint_FAQ_Lists.Lists(); ls.Credentials = System.Net.CredentialCache.DefaultCredentials; string url = "http://faq/sites/sharepoint"; ls.Url = url + @"/_vti_bin/lists.asmx"; //get all wiki pages from the "Wiki Pages" library from a particular view. The second parameter is the GUID of the view XmlNode wListItems = ls.GetListItems("Wiki Pages", "{3F1DB907-7D89-4139-99EC-443D1F9BECC7}", null, null, "", null, ""); //assemble the html content that will eventually string htmlBody = "<html><body>"; //iterate through the returned XML and parse out the relevant information foreach (XmlNode outerNode in wListItems.ChildNodes) { if (outerNode.NodeType.Equals(System.Xml.XmlNodeType.Element)) { foreach (XmlNode node in outerNode.ChildNodes) { if (node.NodeType.Equals(System.Xml.XmlNodeType.Element)) { XmlNode nameNode = node.Attributes.GetNamedItem("ows_LinkFilename"); XmlNode wikiNode = node.Attributes.GetNamedItem("ows_WikiField"); String wikiName = nameNode.InnerText; String wikiBody = wikiNode.InnerText; htmlBody += "<a href="/" mce_href="/""" + "http://faq/sites/sharepoint/wiki pages/"+ wikiName + "/">" + wikiName + "</a><br>"; htmlBody += wikiBody; } } } } htmlBody += "</body></html>"; string fileName = @"c:/temp.html" GenerateFile(htmlBody, fileName); …
相关文章推荐
- SharePoint web service 介紹(2) - Lists
- sharepoint custom web service
- SharePoint Web Service系列: Add或Update其他各种类型的项
- SharePoint WebService (1)
- SharePoint Web Service系列:编写自定义SharePoint Web Services之一
- 对自定义SharePoint WebService的总结
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- SharePoint WebService 在远程机器错误.
- SharePoint Web Service的身份验证
- SharePoint Web Service系列:编写自定义SharePoint Web Services之一
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- sharepoint Lists Web service 用法
- Customize the SharePoint 2013 search experience with a Content Enrichment web service
- WSUploadService – Web Service for uploading documents into SharePoint
- 介绍一个测试SharePoint search web service的工具
- SharePoint web service 上传文件至文件库
- SharePoint Web Service的身份验证
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- using the CopyIntoItems method of the SharePoint Copy web service
- java调用sharepoint webservice