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
Right-click the personal portal project in Solution Explorer. Select Add New Item.
The Add New dialog box displays.
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.
Two objects are added to the personal portal project: ...