I am getting a System.Net.WebException: The operation has timed out at
System.Net.HttpWebRequest.GetResponse() error when I call a WCF web-service.
We have some insurance policies
that we pass to a web service for rating and this process works for 90% of the
time, but for some extremely big policies, I get this error.
WebRequest req = WebRequest.Create("http://sat-myserver-test:9001/transaction/getRates");
req.ContentType = "application/xml";
req.Method = "POST";
StreamWriter writer = new StreamWriter(req.GetRequestStream());
writer.Write(unratedXml.InnerXml);
writer.Close();
Logger.Instance.LogMessage("Call to Rating WebService started", Convert.ToInt32(SessionHandler.QuoteId), "GetRates()", "BOPPriceIndication.cs");
req.Timeou ...
Go to the complete details ...