title: Time out webservice client
body: <p>First sorry for my english.</p>
  
  <p>I am having issues with a web service, this is provided by a client and sadly I cant change anything and they are refusing anyways, now they consume this webservice with java but in my work thats not posible.</p>
  
  <p>With the following code I can retrive a response up to 8k but anything beyond that get me a "timeoutexception", I have try to use a stream a string to save the response. I am fairly new to webservices so I maybe missing something.</p>
  
  <pre><code>public String obtenerData(int idCuestionario, string fechaInicio, string fechaFinal, string path)
  {
    try
    {
  
      String request = "&lt;request&gt;&lt;token&gt;&lt;![CDATA[" + Globals.token + "]]&gt;&lt;/token&gt;" +
                "&lt;idCuest&gt;&lt;![CDATA[" + idCuestionario + "]]&gt;&lt;/idCuest&gt;" +
                "&lt;fechaInit&gt;&lt;![CDATA[" + fechaInicio + "]]&gt;&lt;/fechaInit&gt;" +
                "&lt;fechaFin&gt;&lt;![CDATA[" + fechaFinal + "]]&gt;&lt;/fechaFin&gt;" +
                "&lt;/request&gt;";
  
      response = (string)(wsRep.generaReporte(request));
  
      try
      {
        doc.LoadXml(response);
        if (String.IsNullOrEmpty(path))
        {
          doc.Save(idCuestionario + "_" + ".xml");
        }
        else
        {
          doc.Save(path + "\\" + idCuestionario + "_" + ".xml");
        }
  
      }
      catch (Exception ex)
      {
        MessageBox.Show(ex.Message);
      }
      Globals.token = Globals.tokenK.obtenerToken(response);
    }
  </code></pre>
  
  <p>}</p>
  
  <p>And this is the web.config </p>
  
  <pre><code>&lt;binding name="ReportesWebServiceSoapBinding" closeTimeout="00:01:00"
        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
        useDefaultWebProxy="true"&gt;
        &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None" proxyCredentialType="None"
            realm="" /&gt;
          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
  </code></pre>