Warning
This page is located in archive.

Web services JAX-WS

Lecture plan

  • JAX-WS introduction
  • Designing the service using the bottom-up method
  • Designing the client
  • Printing service design

JAX-WS

Sagar Gunathung talk on web services: ws-overview.pdf

Bottom-up Method

Designing the service using the bottom-up method is based on the automatic contract (interface, WSDL) design from the existing service (and it's interface respectively). The advantage is the speed of service design and implementation. The disadvantage is the contract instability. When the implementation is changed, the contract also needs to be changed. This is not reflected by the most of the existing frameworks.

Task

Use the bottom-up method to design and implement a service which divides one number by another and returns the result. The input of the operation are two parameters - a:java.lang.Double a b:java.lang.Double. The service performs the operation a / b. If the parametr b is zero, the service generates an exception. Do not forget to handle this situation.

Test the service functionality by a client, which will be created using the generated client.

To program the service you can use one of the Wildlife samples: Helloworld-ws.

You can checkout slightly different official Wildfly sample: Wildfly jaxws-pojo

The official Oracle tutorial: Official Oracle tutorial

Semestral Project

You can use your current knowledge to design the Printing Service.

courses/a4m36aos/cviceni/class_05_11_2015.txt · Last modified: 2015/11/05 07:24 by kopriste