How to get a SPListCollection through a sharepoint 2010 web service? Is it possible?
I was trying like this:
using (SPSite osite = new SPSite(siteUrl))
{
using (SPWeb oweb = osite.OpenWeb())
{
SPListCollection lstCol = osite.OpenWeb().GetListsOfType(SPBaseType.DocumentLibrary);
return lstCol;
}
}
So, is there any alternative way to achieve this?