Creating a Web Service

Now that you can upload files to the server, you need a way to see and download the files that have been uploaded. You use a Web service to accomplish it. The Web service enumerates the number of files located on the server and provides a list you can display in the MyDocuments section of the personal portal. The list will be links that, when clicked, will download the file.

To add a Web service to the project

  1. Right-click the personal portal project in Solution Explorer. Select Add New Item.

    The Add New dialog box displays.

  2. Select Web Service from the Templates list and type MyDocuments.asmx in the Name text box. (See Figure 12-9.)

    Figure 12-9. Add New Item dialog box.

  3. Click Add.

    Two objects are added to the personal portal project: ...

Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.