This repository features two pairs of projects:
SimpleClient
andSimpleService
AdderClientResteasy
andAdderServiceResteasy
The Simple projects show the minimal set of capabilities, whereas the RESTEasy projects illustrate some of JAX-WS' features.
To run the Simple projects, proceed as follows.
- Clone this repository to a temporary folder.
- Import the project as described in the Java EE tutorial.
- Once you published the Simple projects onto your application server and started the server, your adder service is accessible under http://localhost:8080/SimpleService/ (replace
localhost
with your Docker-IP, when using Docker Toolbox). - Try changing the query parameters of the URI, i.e. .../?first=3&second=5.
- Also try the sample client that uses the simple service.
To run the advanced projects (AdderClientResteasy
and AdderServiceResteasy
), proceed as follows.
- Clone this repository to a temporary folder.
- Import the project as described in the Java EE tutorial.
- Once you published your projects onto your application server and started the server, your adder service is accessible under http://localhost:8080/AdderServiceResteasy/api/ (replace
localhost
with your Docker-IP, when using Docker Toolbox). - Try changing parts of the URI, i.e. .../api/add/1/3/. Also try to send different Accept-Header using a curl-like tool such as httpie, REST Console for Chrome, or RESTClient for Firefox to see how the resource responds with different representations.
- Also try the sample client that uses the RESTEasy web service.