Echelon i.LON SmartServer Technical Information Page 332

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 331
i.LON SmartServer 2.0 Programmer’s Reference
20-10
5. A .NET 2.0 client must turn off the keep-alive attribute to communicate with the SmartServer
without exceptions being generated. To turn off the keep-alive attribute, the generated web
reference class must be inherited, and the GetWebRequest method must be overridden, where the
KeepAlive flag can be turned off. The following procedure describes how to do so.
a. Click Project, and then click Add Class. The Add New Item dialog opens.
b. In the Name box, enter “iLON_WebService” and then click Add.
c. Insert a using System.Net statement at the beginning of the ilon_WebService class.
d. Inside the iLON_WebService class, enter the following code to override the GetWebRequest
function so that it turns off the KeepAlive flag:
Page view 331
1 2 ... 327 328 329 330 331 332 333 334 335 336 337 ... 442 443

Comments to this Manuals

No comments