I am writing a very small application for creating and testing caml requests for sharepoint. When I execute the GetListItems method, I get the following exception:
System.Net.WebException: "The request failed with an empty response."
The service is located at https (ssl). I configure the service as follows:
result = new ListService.Lists(); result.Url = siteUrl; result.Credentials = new NetworkCredential(txtUserName.Text, txtPassword.Text, txtDomain.Text);
I call the GetListItems () method as follows:
xmlResult = spList.GetListItems(listName, string.Empty, camlQuery, null, string.Empty, null, string.Empty);
I am trying to find out why I am getting a message with an empty result. I also tried other methods (i.e. GetListCollection), but to no avail.
At first I thought the problem might be the URL (http instead of https), but it is not. I even tested it with wirehark to make sure the correct URL is being used.
Someone came to this problem and how did you solve it?
source share