The Server
----------
The Server has nothing specific related to the SOAP protocol or Tomcat. It
is simply just java code that will be run as a service by Tomcat.
For simplicity we have defined a stock object that will contain all the
information that we need to store about an individual stock. You can view
the Stock.java class here. This is a sample implementation for our project.
You may choose to implement this anyway you want. We recommend that
you use our stock object.
Your server will have the following functionality:
1. Read a file that contains a list of known stocks and their financial data. A sample
input file can be found here.
2. A method called getQuote that takes a string ticker as a parameter
and returns the Stock object associated with that ticker. In addition before
returning the stock object you should generate a random price for that stock and
update the object. Once you have updated it using the setPrice method you can
return the object.
sampleServer.java is a prototype for a sample server.