Creating and using XML Web Services
Version A
Football league results and standings
- Create and store in a file of chosen format the data from a football season:
- the number and the names of the teams in the league
- the dates and results of all the games (there are two games for each pair of teams, in each game the different team plays home)
- make sure the season is split to two rounds (spring and autumn), in each round two teams play only once
- Create a XML Web Service at the address: http://localhost/task6/DLS/DLService.asmx
- methods:
- GetSeasonInfo
- returns the season information
- teams taking part in the league games
- season and rounds start and end dates
- GetGamesInfo
- returns the game information for all games played at given date
- make sure that the exceptional situations (e.g. no games played at given date) are properly handled
- the numbers and types of parameters as well as the type of the result are arbitrary
- use the data stored locally
- Create an ASP.NET application which contains a page at the address: http://localhost/task6/DLT/DLTest.aspx
- the page contains:
- an edit control for giving the date
- a dropdown box for choice between spring and autumn rounds, or entire season
- a league table for the given period of time (from start of the round / season until the given date)
- a team gets 3 points for each win, 1 point for draw and 0 points for loss
- for each team there is given: number of games played, number of points, number of scored goals and number of goals lost
- the teams in the table are sorted by a number of points, and in case of equal number of points, by the difference between scored and lost goals
- if there is no date given, the data provided comes from the entire round / season
- a button for refreshing the table
- as the data source, use the functions from the created service
- CAUTION: if the addresses of the Web Site and Web Service are different than these provided above,
only the "potential usability" of the code will be marked