Make sure you set the Timeout to "-1" for 'infinite", otherwise you may end up with timeout errors at any point in your application that calls the service.
C# Code
MyWebService.WebService webService = new MyWebService.WebService();
webService.Url = ConfigurationManager.AppSettings["WebService.URL"];
webService.Timeout = Int32.Parse(ConfigurationManager.AppSettings["WebService.Timeout"]);
Web.config
<add key="WebService.URL" value="http://myserver.com/MyWebService.asmx">
<add key="WebService.Timeout" value="-1">
Tuesday, February 26, 2008
Subscribe to:
Post Comments (Atom)
Check This Out!
More Links to Good Information
- December (1)
- October (1)
- January (1)
- September (1)
- February (2)
- January (2)
- May (3)
- February (1)
- May (1)
- October (1)
- January (1)
- August (1)
- March (1)
- May (1)
- March (1)
- January (1)
- March (1)
- December (2)
- September (2)
- June (1)
- February (1)
- January (1)
- October (1)
- December (2)
- November (1)
- August (4)
- July (14)
- June (10)
- May (9)
- April (2)
- February (4)
- January (2)
- December (7)
- October (10)
No comments:
Post a Comment