O'Reilly logo

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

Generating RESTful Java client code

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

To generate this client code in a Java application project, we simply need to go to File | New File, select the Web Services category, and select RESTful Java Client as the file type.

Generating RESTful Java client code

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

Generating RESTful Java client code

Note

Jersey is the JAX-RS implementation included with GlassFish. Since we ...

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