title: "The request failed with an empty response" when calling a web service
body: <p>While calling a webservice hosted in a server from an aspx page am getting the error like "The request failed with an empty response".</p>
  
  <p>code in my page</p>
  
  <pre><code>try {
      HttpWebRequest request1 = (HttpWebRequest)WebRequest.Create("https://login.erp.com/rodeprovisioning/provisioning.asmx");
      request1.Accept = "text/xml";
      request1.Method = "POST";
      WebProxy proxyObject = new System.Net.WebProxy("http://10.0.0.1:8080/", true);
      request1.Proxy.Credentials = CredentialCache.DefaultCredentials;
      string sReturnValue = null;
      if (string.IsNullOrEmpty(Session["Test"])) {
          sReturnValue = callservice();
          if (sReturnValue == "Success") {
              ErrorLabel.Text = sReturnValue;
              Session["Test"] = "True";
          } else {
              ErrorLabel.Text = sReturnValue;
          }
      }
  
  } catch (Exception ex) {
  
  }
  </code></pre>
  
  <p>and in web.config</p>
  
  <pre><code>&lt;system.net&gt;
      &lt;authenticationModules&gt;
        &lt;add type = "System.Net.DigestClient" /&gt;
        &lt;add type = "System.Net.NegotiateClient" /&gt;
        &lt;add type = "System.Net.KerberosClient" /&gt;
        &lt;add type = "System.Net.NtlmClient" /&gt;
        &lt;add type = "System.Net.BasicClient" /&gt;
      &lt;/authenticationModules&gt;
      &lt;connectionManagement&gt;
        &lt;add address = "*" maxconnection = "2" /&gt;
      &lt;/connectionManagement&gt;
      &lt;defaultProxy&gt;
        &lt;proxy usesystemdefault="True"   bypassonlocal = "True"   /&gt;
      &lt;/defaultProxy&gt;
      &lt;webRequestModules&gt;
        &lt;add prefix = "http"   type = "System.Net.HttpRequestCreator"        /&gt;
        &lt;add prefix = "https"  type = "System.Net.HttpRequestCreator"        /&gt;
        &lt;add prefix = "file"   type = "System.Net.FileWebRequestCreator"         /&gt;
      &lt;/webRequestModules&gt;
    &lt;/system.net&gt;
  </code></pre>
  
  <p>Is it a firewall problem.Any Suggestion?</p>