Exercises

The intention of this day is for you to create and use RPC-style Web Services. To ensure that you are comfortable with these areas, you should attempt the following tasks.

  1. Create a simple stock quote server using a JWS file. The stock quote server should take a string as the stock for which a quote is required ("SUNW", "MSFT", "ACME"). The quote service should return a floating point value that reflects the current share price. Your server should just hold two arrays—one of strings and one of associated stock prices (don't get bogged down in the application logic, but feel free to have a bit of fun with the stock prices you return!).

  2. Deploy the service and check that it is operational by obtaining its WSDL.

  3. Create a client for the service ...

Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.