O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

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

Creating a Java client

In this section, we will use the Jersey client API to create a JAX-RS Web Service client. Create a Java class for a Java client. Select File | New | Other. In New, select Class and click on Next. In the New Java Class wizard, select Source folder as src/main/java, specify Package as org.jboss.jaxrs.rest, and Name as JAXRSClient, which is shown as follows. Then click on Finish.

Creating a Java client

The org.jboss.jaxrs.rest.JAXRSClient class gets created, as shown here:

Creating a Java client

Jersey provides a client API to invoke a JAX-RS Web Service. In the Java client, ...

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