title: The underlying connection was closed when using a WSDL web service
body: <p>I am trying to consume this WSDL service:</p>
  
  <p><a href="http://www.estes-express.com/transittime/services/TransitTimeService?wsdl" rel="nofollow noreferrer">Transit Time Service</a></p>
  
  <p>I successfully connect and get a response the first time but on subsequent calls I receive the exception:</p>
  
  <p>The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.</p>
  
  <p>I overrode the GetWebRequest in the reference.cs file as such:</p>
  
  <pre><code> protected override System.Net.WebRequest GetWebRequest(Uri uri)
   {
       HttpWebRequest webRequest =  (HttpWebRequest)base.GetWebRequest(uri);
       webRequest.KeepAlive = false;
       return webRequest;
   }
  </code></pre>
  
  <p>This hasn't yielded any improvement.  I am at a loss as to what options I have now, does anyone have any other ideas that I could try so that I may avoid this error?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Josh</p>