I am receiving a full sharepoint url like 'http://TestServer/sites/TestSite/TestSubSite/_vti_bin/lists.asmx'
I know the following code will not work as the url does not directly reference a site.
using (var context = new ClientContext(http://TestServer/sites/TestSite/TestSubSite/_vti_bin/lists.asmx))
{
}
My question is...considering urls are provided to me, what logic can I apply to modify the url so that I am only referencing the subsite 'http://TestServer/sites/TestSite/TestSubSite'?
Thanks heaps.