Using the Apache Wink REST client inside server applications to issue requests

You can use the Apache Wink REST client as a client that can be run to send requests to your JAX-RS application.

About this task

The Apache Wink REST client is a Java-based HTTP client. This client provides convenience methods for using REST services. The JAX-RS specification does not currently define a standard client API. IBM® JAX-RS provides the Apache Wink REST client API as an easy to use client that enables easier integration with existing programs.

Procedure

  1. Configure the development environment. Before you start developing JAX-RS applications, you must set up your development environment by adding the JAX-RS libraries on the classpath.
  2. Implement a client using the Apache Wink Rest client. Use the Apache Wink RestClient API to create a stand-alone client that can send requests to your JAX-RS application.

Results

You have implemented a JAX-RS client using the Apache Wink Rest client that can issue requests to a JAX-RS application.

Task topic    

Terms and conditions for information centers | Feedback

Last updated: April 20, 2014 08:46 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twbs_jaxrs_impl_client
File name: twbs_jaxrs_impl_client.html