The Web Service Class
The last thing we need to create is the class that implements the Web Service methods.
To start, our Web Service will have two methods:
-
GetCompanyInfo—returns information about a company, specified by ID.
-
CreateCompanies—adds additional companies to the database (this is simply to create data for our example, it is probably not a good idea for a real Web Service).