Testing our RESTful web service

Once we deploy our project, we can make sure that the web service was deployed successfully by expanding the RESTful Web Services node on our project, right-clicking on our RESTful web service, and selecting Test Resource Uri:

Testing our RESTful web service

This action will invoke the findAll() method in our service (since it is the only method that doesn't require a parameter), and the generated XML response will automatically be opened in the browser.

Testing our RESTful web service

The XML response for our web service displays the data in the CUSTOMER table in the database in ...

Get Java EE 7 Development with NetBeans 8 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.