using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://SQLskills.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public decimal GetStockPrice(string symbol) {
        if (symbol == "MSFT") return 33.33M;
        else
        if (symbol == "ORCL") return 18.50M;
        else
        return 9.99M;
    }
    
}
