CXF Restful Client Example explains step by step details of How To Create a CXF REST Client from a deployed Apache CXF Restful service
For Creating Apache CXF Restful Client, We are using java.net.HttpURLConnection.
By using HttpURLConnection, we are invoking the correct exposed methods / operations of restful service.
For publishing a Restful service, you can follow this tutorial CXF Restful Tutorial. This client is based on mentioned Tutorial
You can also find RESTful Java Client Using HttpClient if you need to invoke restful service using Apache HttpClient
You can see the below example, which is demonstrating a CXF REST Client Example