The Client

The client code is a straightforward Windows Forms application that enables the user to upload new tasks and view the progress of current tasks. When the application first starts, the user is prompted to log in (as shown in Figure 18-5).

The Login window

Figure 18-5. The Login window

The client code includes a private Login function that shows the login form until the client cancels the attempt or the login succeeds, as shown in Example 18-22.

Example 18-22. The client Login method

Private Proxy As New localhost.RenderService() Private Function Login()     Dim frmLogin As New Login()     Do While frmLogin.ShowDialog() = DialogResult.OK         ’ Create the SOAP header with the user name and password. ...

Get Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.