Search code examples
javarestcxfjersey-client

can we use jersey client for Apache CXF webservice?


We have a REST service using apache CXF. Can we use Jersey client to call this service.

Is there any mistake?


Solution

  • The idea of a web service is to allow communication between hetrogenous systems. So no matter what framework is used to create the web service, you should be able to call it using any client, provided both client and server conforms to the JAX-RS specifications. So in your case you should be able to call a REST services developed using Apache CFX using the jersey client. As both the frameworks follows the JAX-RS spec.