The next SOAP extension we'll build is for usage accounting or metering. The idea is to intercept each incoming request and log it to the AccountUsage database table with the userid, method name, and request time. It would also be nice if the extension could optionally log the time that the response was sent back to the client. That way you also get an idea of how long each method invocation took. Listing 10.8 shows the Accounting SOAP extension implementation.
Public Structure AccountingExtensionConfig Public ConnStr As String Public LogResponse As Boolean End Structure Public Class Accounting Inherits System.Web.Services.Protocols.SoapExtension ...