O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

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

Developing a RESTful web service client

NetBeans provides a wizard that can automatically generate client code that invokes our RESTful web service methods via the corresponding HTTP requests.

To generate this client code, we simply need to click on File | New File, then select the Web Services category and RESTful Java Client as the file type.

Developing a RESTful web service client

In the next step in the wizard, we need to enter a class name and a package name for our JAX-RS client.

Developing a RESTful web service client

We then need to select the RESTful web service that our client will consume, in our case we need to select ...

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