Iam try to access the sharepointlist items using asp.net code below it make exception
Exception of type 'Microsoft.Shar ePoint.SoapServ er.SoapServerEx ception' was thrown.
how it will be rectified?
Exception of type 'Microsoft.Shar ePoint.SoapServ er.SoapServerEx ception' was thrown.
how it will be rectified?
Code:
try
{
SharePointSvce.Lists listservice = new SharePointSvce.Lists();
listservice.Credentials = System.Net.CredentialCache.DefaultCredentials;
listservice.Url = "";
string listGUID = "";
string ActiveItemViewGUID = "";
System.Xml.XmlNode activeItemData = listservice.GetListItems(listGUID, ActiveItemViewGUID, null, null, "5", null, null);
foreach (System.Xml.XmlNode listitem in activeItemData)
{
System.Xml.XmlAttributeCollection attrs = listitem.Attributes;
Console.WriteLine(listitem.OuterXml);
}
Console.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
Comment