I have a WCF service that hits another SOAP (3rd party) service. Sometimes the SOAP service can take it sweet time returning data. For that reason I increased the timeout for connecting from the WCF service to the SOAP service. I made the following changes:
In the web.config of the WCF service:
<system.web>
<httpRuntime executionTimeout="600"/>
</system.web>
In the code when instantiating the SOAP service, I do the following:
service = new The3rdPartyService
{
Url = "http://192.168.1.40:8080",
Timeout = 600000 // assuming this is in milliseconds
};
However, the calls still time out after about 100 seconds. Sounds like I am not overwriting the timeout properly.
What am I missing?