We have a windows service that pulls the data from SharePoint. It is working just fine on the SharePoint 2007 environment however throws the below error on SharePoint 2010. Is there a quick fix? else should I need to add the Lists.asmx as a service reference as recode completely?

elemList = (XmlElement)listWS.GetListItems(listName, null, query, view, "", null, "");

(XmlElement)listWS.GetListItems(listName, null, query, view, "", null, "")  Cannot call 'Lists.Lists.GetListItems(string, string, System.Xml.XmlNode, System.Xml.XmlNode, string, System.Xml.XmlNode, string)'

because it is a web method.


It seems you have to re-create SharePoint Lists Web Service proxy and re-build solution in VS.


How to: Add a Reference to a Web Service

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.