Creating and using XML Web Services
Spell Checker Web Service
-
1. Create and store in a file of chosen format some misspelled words together with the suggested right spellings:
-
each misspelled word can have several suggested right spellings, e.g.: sesson -> season, session, lesson
-
if a misspelled word has several suggested right spellings, one of the spellings should be chosen as being most likely the right one
-
2. Create a XML Web Service at the address:
http://localhost/task6/Service/Service.asmx (using different address can result in lower mark), with the given interface:
-
methods:
-
GetRightSpellings
-
for a given word, it returns the set of suggested spellings (if there is no such word in a file we assume, that it is spelled correctly)
-
AutoSpellCheck
-
for a given piece of text, it returns the same text with all the wrong words replaced with the best right spellings
-
use the data stored in the file you have created
-
3. Create a test application of the chosen type (ASP.NET, Windows Forms or console application), which uses the XML Web Service above.
-
test application functionality:
-
the interface for writing in (pasting) the text
-
the interface for selecting the translation mode: automatic and manual
-
in the automatic mode the entire text is spellchecked, and the best right spellings are put instead of the wrong ones
-
in the manual mode each word is checked separately, and if misspelled, the user is given the choice of a right spelling (together with the choice of leaving the word as it is); then the particular word is being replaced in the text with the one the user have chosen (or left unchanged)
-
Approximate points:
-
50% - XML Web Service
-
50% - test application