I am creating some customized web services for my client. I needed to fetch all the tasks in a Sharepoint list. I used following code for that:
NetworkCredential credentials = new NetworkCredential("user", "pass", "domain");
ListService.Lists objLists = new ListService.Lists();
objLists.Url = "http://server:port/subsite/_vti_bin/Lists.asmx";
objLists.Credentials = credentials;
objLists.proxy=new webProxy();
XmlNode objQueryOptions = objXMLDocument.DocumentElement;
resultXml = objLists.GetListItems("Project Server Workflow Tasks", null, null, null, "100", objQueryOptions, null);
XElement xresult = GetXElement(resultXml);
But the problem is problem is this code is returning MyTasks instead of AllTasks which it is supposed to return. As on my local server same code returns all tasks and if change the List name in the code to Tasks than the client server also returns All tasks.