Assignment 2: Consuming Web Services
Purpose
The purpose of this assignment is to pratice how to develop a web service consumer application based on a web service description.
Requirements
- Create a google account and get a license key.
- Use Axis to generate Java classes from GoogleSearch.wsdl. See here for instructions.
- Write a program that uses the Java classes to spell check a text file. Follow the Tester example shown here on how to call web services.
- Name your main class file SpellChecker.java. Your code should compile with command-line javac -classpath ".;all the jar files;" SpellChecker.java,
and run with command-line java -classpath ".; all the jar files;" SpellChecker test.txt and print out:
envelop -> envelope
convntion -> convention
(Your program will be tested using a different test file.)
Grand Challenge (Extra Credit)
Some typos, such as "prioriti", "grup", and "th" will not be detected and corrected by simply using the doSpellingSuggestion function. How to spell check such words using google web services?
Students whose programs can handle such words will be waived of the final exam. That means they do not need to take the final exam and will automatically receive full credits.
Note: your implementation should mainly rely on google's web services without using complex natural language processing techniques or text corpora.
Due date
This program must be received by 11:59pm EDT on 4/20.
Submitting
Submit your program by creating a zip file with your last name as the file name and include only the Java files that you wrote. Email the zip file to lqiu@oswego.edu with "CSC535 Assignment 2 - your name" as the subject.
When I extract your zip file, your file should create a directory with your last name and all the code should be in that directory.
Do not send your source code directly as attachment to your email because some email program may add line-ending characters to your code which makes it fail to compile on my machine.
Grading rubrics