Saturday, March 27, 2004 6:02 PM
by
onoj
Web service calls and performance
While on the subject of performance... Have you ever wondered why the first call to a method on a Web service takes more time than subsequent calls? The first time a method on a Web service is called causes the soap client to reflect over the Web service proxy object. To mitigate this delay declare the Web service object global to the class and call a simple web method on the Web service during form load. Subsequent calls will not incur this reflection overhead.