Getting Started - LEADTOOLS Web Services in a VS.NET Web Application Project

This topic includes step by step instructions on how to include the LEADTOOLS Host
Web Services into a Visual Studio .NET Web Application project.
  1. Start Visual Studio .NET and create a new ASP.NET Web Application Project.

  2. Right click on the Project name, WebApplication1, in the Solution Explorer as
    shown below:


  3. Visual Studio's Add Web Reference dialog will appear.
    In the Address box a the top of this dialog, enter this
    URL: http://www.leadtools.net/Services/

  4. After entering the address, the LEADTOOLS Hosted Web Services directory
    will be listed in the left pane. Click on the LEADTOOLS Image Service link list in
    the left pane.

  5. The left pane will list the methods for the LEADTOOLS Image Web Service and
    the right pane will list additional information. Click the Add Web Reference
    button on the bottom right.

  6. Visual Studio will create a wrapper to the LEADTOOLS Image Web Service. Upon
    completion, expand the Web References in the Solution Explorer and rename
    WebReference1 to LEADImageService.

  7. Repeat the same steps for the LEAD File Service and rename it to LEADFileService.

  8. Add a DataGrid to your form and name it dgImages.

  9. Add a Label to your form and change its text to URL:.

  10. Add a TextBox to your form and change its id to tbURL.

  11. Add a Label to your form and change its text to Name:.

  12. Add a TextBox to your form and change its id to tbName.

  13. Add a LinkButton to your form and change its id to lbUpload and its text
    to Upload.

  14. Add the following source code to your form: