Rest – the difference between JAX-RS and JAX-WS

jax-rsjax-wsrestsoapweb services

After reading a few articles about JAX-RS and JAX-WS, I had a few questions that I want to confirm?

  1. Can JAX-RS do Asynchronous Request like JAX-WS?
  2. Can JAX-RS access a web service that is not running on the Java platform, and vice versa?
  3. What does it mean by "REST is particularly useful for limited-profile devices, such as PDAs and mobile phones"?
  4. What does it mean by "JAX-RS do not require XML messages or WSDL service–API definitions?

Best Answer

Another important point

JAX-WS represents SOAP

JAX-RS represents REST

How to choose between JAX-RS and JAX-WS web services implementation?