HI,
I am trying to use the "GetVersionCollection" from the lists.asmx (CSOM + console application)
I added the webservice, and used the below code:
//listId contains the GUId in a string variable. listId = "{" + listId + "}"; FetchListVersion.Lists listsservice = new FetchListVersion.Lists(); listsservice.UseDefaultCredentials = true; XmlNode ndVersions = listsservice.GetVersionCollection(listId, ItemId, "_UIVersionString"); foreach (XmlNode version in ndVersions.ChildNodes) { Console.WriteLine(version.Attributes["_UIVersionString"].Value); }
I am getting the error as below:
System.Web.Services.Protocols.SoapException was unhandled
HResult=-2146233087
Message=Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
Source=System.Web.Services
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
How to fix this?
Thanks