Question-and-Answer from discussions in and out of class

When should web services be used, and what are some of the most typical web service applications?

I don't know if this will answer the question, but I found an on-line book that at least mentions the things for
which Web services should and should not be used: http://www.learnxmlws.com/book/  Look in Chapter 1, sections "When to Use Web Services" and "When Not To Use Web Services" (near the bottom of the page). And here is another link of a section of a book called "Typical Web Service Scenarios": http://java.sun.com/blueprints/guidelines/designing_webservices/html/introduction5.html

Hope that helps. Clayton Ferner

A problem to watch out for in assignment 1:

The problem is that when students add calls to their client program to make use of the new
operators isEven and is Prime, they are likely to duplicate the section of the code that
sets up the "Call" object, sets the IN and OUT parameters, sets the return type, and invokes
the call.  If one adds new code for the method addParameter() to add an IN parameter, then
the call object will now have two parameters (the first int, and now a new int).  However,
all three operators only take a single int.  There will be an exception about wrong number
of parameters.  So students should not make new calls to the addParameter() for IN
paramters.  (There does not seem to be a problem for OUT parameters and the return type.) 

Alternatively, students could create new "Call" objects, one for each operation they plan to
use.  Then they can duplicate the code, just renaming things appropriately.

Clayton Ferner