Geeks With Blogs
Wayne Magnum's Blog

The following code below enables you to read the response from MOSS List Web Service...

MOSSListWS.Lists list_svc = new MOSSListWS.Lists();

list_svc.Credentials = new System.Net.NetworkCredential(username,"password");

 

// The URL property for WebService retrieve

list_svc.Url = "http://ilocalhost/_vti_bin/lists.asmx";

XmlNode itemCollection = list_svc.GetListItems("listName", string.Empty, null, null, "0", null, "");

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.LoadXml(itemCollection.OuterXml);

DataSet ds = new DataSet();

StringReader stringReader = new StringReader(xmlDoc.OuterXml);

ds.ReadXml(stringReader);

stringReader.Dispose();

dataGridView1.DataSource = ds.Tables[1];

Posted on Tuesday, June 24, 2008 2:46 PM SharePoint 2007 | Back to top


Comments on this post: Reading Content From a SP List Web Service

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Wayne H Magnum | Powered by: GeeksWithBlogs.net