February 2003
Intermediate to advanced
752 pages
16h 35m
English
You can introduce a similar upload strategy through a dedicated XML Web service and Windows client. The XML Web service plays the same role as the ASP.NET Web page: It accepts a buffer of bytes and writes them to the OrderProcessor directory. At this point, the OrderProcessor takes over. Example 16-16 shows the XML Web service.
Example 16-16. The Excel upload XML Web service
Public Class OrderService Inherits System.Web.Services.WebService <WebMethod()> _ Public Sub UploadExcelFile(ByVal filename As String, _ ByVal bytes As Byte()) ’ Determine the location and name for the new file. Dim SavePath As String SavePath = ConfigurationSettings.AppSettings("MonitorPath") SavePath &= "\" & filename ...Read now
Unlock full access