Annotating a class with @WebService is not enough to implement a web service. We need a library that implements JAX-WS specification. There are a number of JAX-WS frameworks available, for example, Axis2, Apache CFX, and Glassfish Metro. In this chapter, we will use the Glassfish Metro implementation, which is also a reference implementation (https://jax-ws.java.net/) of JAX-WS from Oracle.
Let's add Maven dependency for the JAX-WS framework. Open pom.xml and add the following dependency:
<dependencies> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.2.10</version> </dependency> </dependencies>
Replace the previous version number with the ...