O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required