title: Increase timeout when consumed as web reference (not service reference)
body: <p>There are lots of <a href="https://stackoverflow.com/questions/3559595/c-sharp-web-reference-call-timeout">similar</a> questions on StackOverflow.  If this is a duplicate, I would appreciate a little explanation of how to apply other solution in my context please.</p>
  
  <p>I have a project that is a WebAPI.  This WebAPI in turn calls a web service (WSDL), processes the data and returns to the client:</p>
  
  <pre><code>[Client] ----&gt;  [My WebAPI] ----&gt; [WSDL Server]
                                          |
         &lt;--------  [My WebAPI] &lt;---------
  </code></pre>
  
  <p>The WSDL part is a Java-based service.  The only way we could consume it without issue in VS2015 was to add it as a Web Reference (2.0 in the dialog).  It works perfectly, with strongly-typed values as required, but today we've seen a timeout between <code>My WebApi</code> and <code>WSDL Server</code>.</p>
  
  <p>In other answers on SO, I see that the timeout period can be configured in web.config <code>&lt;bindings&gt;</code> or via a proxy, but I can't see how to wire this up given my web.config contents, which differs massively from other peoples.  The code below was generated by VS2015 when the WSDL service was consumed:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings /&gt;
      &lt;client /&gt;
  &lt;/system.serviceModel&gt;
  &lt;applicationSettings&gt;
      &lt;MyWebAPI.Properties.Settings&gt;
          &lt;setting name="MyWebAPIs_ThirdPartyWSDLService_GetData" serializeAs="String"&gt;
              &lt;value&gt;https://wsdl.domain.com/webservices/services/GetData&lt;/value&gt;
          &lt;/setting&gt;
      &lt;/MyWebAPIs.Properties.Settings&gt;
  &lt;/applicationSettings&gt;
  </code></pre>
  
  <p>I also can't find any mention of timeouts in the c# intellisense code.  Any help or pointers would be appreciated.  I've read about 12 posts on SO but still can't figure it out.</p>