What is the difference between JAX-RS and JAX-WS?

pmark019 picture pmark019 · May 14, 2013 · Viewed 104k times · Source

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?

Answer

user2849471 picture user2849471 · Oct 12, 2013

Another important point

JAX-WS represents SOAP

JAX-RS represents REST

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