Sharepoint Lists.asmx: request failed with empty response

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?

+4
source share
1 answer

OMG ...! I decided this in the end. After posting this question, I tried to check wsdl for checking the service itself. When I checked it through the Internet Explorer, everything was in order. When I tried to add it as a link in VS, it went wrong. So something is wrong. Then it seemed to me that a new login screen appeared on our network.

After some quick phone calls, I found out what the problem was; IT services installed the ISA 2006 server and "forgot" to tell me. The ISA server blocked all traffic on the HTTPS port (443) for undisclosed programs and / or clients. That is why Internet Explorer introduced me to a new and brilliant login dialog.

+6
source

All Articles