Workshop

IOTA^_^    

Sams Teach Yourself ASP.NET in 21 Days, Second Edition
By Chris Payne
Table of Contents
Day 16.  Creating XML Web Services


This workshop will help reinforce the concepts you've learned in today's lesson. The answers can be found in Appendix A.

Quiz

1:

What's a Web service?

2:

What does SOAP stand for, and what does it do?

3:

What's a service description?

4:

What class (including namespace) must a Web service inherit from?

5:

Write an arbitrary Web method that enables caching and disables session state.

6:

True or false: A Web method can take advantage of intrinsic ASP.NET objects, such as Session and cache.

7:

True or false: A Web method can return a DataSet.

Exercises

1:

Examine the XML service description for the database service you created earlier today. Try to understand each of the tags, recalling the discussions on XML and XML schemas. Note that much of the file describes how the different protocols (Http-Get, SOAP, and so on) are to send and receive data.

2:

Create a Web service that converts one unit of measurement into another. This method should take three parameters: a value, a unit to convert from, and a unit to convert to. Allow the user to convert to and from the following: millimeters, centimeters, inches, feet, meters, yards, miles, and kilometers. Don't forget to test it with the HTML Description page!

(Don't worry if you don't know the exact conversions between units of measurement. Just make something up.)


    IOTA^_^    
    Top


    Sams Teach Yourself ASP. NET in 21 Days
    Sams Teach Yourself ASP.NET in 21 Days (2nd Edition)
    ISBN: 0672324458
    EAN: 2147483647
    Year: 2003
    Pages: 307
    Authors: Chris Payne

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net