This project must be done individually. No copying is permitted. The purpose of this project is to learn how to call a SOAP-based web service in Java using Eclipse.
You will do this project on your own PC/laptop using Eclipse. Directions:
A SOAP Web service is a software system identified by a URI whose public interfaces and bindings are defined and described using XML. It is intended to be used by web applications. Both the input and output of a SOAP web service are in XML. The XML description of a Web service is called WSDL (Web Service Description Language). The Apache Axis tool generates client stubs from WSDL files, so that applications can consume services by just calling Java methods (XML is completely hidden).
For this project, you will use the Dictionary Web Service provided by services.aonaware.com. In particular, you will use the SOAP method Define, DefineInDict, and DefineList. Create a new Java Project from the top menu in Eclipse using File -> Other... -> Java Project. Use the Project name: project1. Push Finish. On the Package Explorer (left column), R-click on project1, and choose New -> Other.. -> Web Services -> Web Service Client. Put the WSDL URL http://services.aonaware.com/DictService/DictService.asmx?WSDL and push Finish. R-click on project1 and choose New -> Class. Use uta.edu for Package and Project1 for Name, choose "public static void main(String args)", and push Finish. In the project/src directory in Package Explorer you will see the com.aonaware.services.webservices and uta.edu packages. Use the constructor DictServiceSoapProxy() to create a proxy object that connects to the Web Service. All web service requests (such as defineInDict) are methods of this class.
Your Java program should print all available dictionaries and then should ask for a dictionary name and a word name. If the dictionary name is empty, your program will print the word definition in all dictionaries. If it is a valid dictionary name, your program will print the word definition in this dictionary. Otherwise it will report an error.
Use the form below to submit the file Project1.java only. We do not accept email or hardcopy submissions. You need a username and password to submit your project. You should have already received an email from your instructor at your mavs.uta.edu account with your username and password. You may submit multiple files, if you like, as long as they have different names. These files are automatically uploaded directly into your personal class account for this particular project, so you don't have to include your name or student ID or project number in the file name. You may submit your files as many times as you like, but only the most recently submitted files will be retained and evaluated (newly submitted files replace the old files under the same file name). After you submit the files, please double-check that your submitted files are correct by clicking on the Status link and by downloading your submitted file. If you cannot login or have a problem submitting the project using this form, ask the GTA for help.
Last modified: 01/17/12 by Leonidas Fegaras