SharePoint Lists Web Service – making sense of the return value
The return values from the SharePoint Lists web service tend to be fairly unintelligible, even for something as straightforward as GetListItems.
The best tip I’ve come across for extracting data from the Lists web service return value is to be found on Paul Ballard’s blog (http://weblogs.asp.net/paulballard/archive/2005/05/08/Using-Data-From-SharePoint-2003-Lists.aspx)
XmlNode returnValue = listsService.GetListItems(listName, null, query, viewFields, null, queryOptions, null); String xPathQuery = "//*[local-name() = 'data' and namespace-uri() = 'urn:schemas-microsoft-com:rowset']/*[local-name() = 'row' and namespace-uri() = '#RowsetSchema']"; XmlNodeList listItems = returnValue.SelectNodes(xPathQuery);
Using the XPath query defined above makes life so much easier – trust me. And don’t be put off by the title of Paul’s article, this works equally well for Office SharePoint Server 2007 and WSS 3.0.
Categories: SharePoint Development
Web Services

You can make it easier on yourself if you try out the SharePointUtility dll which comes with the SSIS adapters. The DLL is used by the adapters, and provides an easier API to interface with the lists webservice. Getting the errors out is very easy (and many are translated). Try it out!
http://www.codeplex.com/SQLSrvIntegrationSrv
Kevin I