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.
Click Add.
Two objects are added to the personal portal project: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access