Frederic Enesys

Can someone confirm that "Lists.GetVersionCollection" is the only available 
method to get list item versions (other than the current one) using web 

If that is true, considering that the method return version information for 
a specific field, that means that one would have to call the method for each 
field of a specific item in order to collect the vesions of a specific item.
That would have to be repeated for each item if one need to collect the 
versions for a set of items.

Am I not missing some web services method that would make it more easy to 
retrieve a set of items with its various versions as well 

Thanks for any input.

Frederic Latour

Re: SharePoint - Development and Programming Subject: Getting item versions using Web Services


I'm looking into this exact issue and was wondering the same thing. Sure would love to hear if there is an easy way to retrieve the history of an issue.

And for the record, I tried calling the GetVersionCollection method but just get this:

System.Web.Services.Protocols.SoapException was unhandled
Message="Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."
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)
at CallSharepointWSS.GetVersionCollection.Lists.GetVersionCollection(String strlistID, String strlistItemID, String strFieldName) in D:\SSISWSS\CallSharepointWSS\CallSharepointWSS\Web References\GetVersionCollection\Reference.vb:line 538
at CallSharepointWSS.Module1.GetHistory() in D:\SSISWSS\CallSharepointWSS\CallSharepointWSS\Module1.vb:line 107
at CallSharepointWSS.Module1.Main() in D:\SSISWSS\CallSharepointWSS\CallSharepointWSS\Module1.vb:line 91
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()