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

kgautron picture kgautron · Aug 18, 2011 · Viewed 36.2k times · Source

In what contexts is it better to use one over the other and why?

Thanks!

Answer

Mouna Cheikhna picture Mouna Cheikhna · Aug 18, 2011

JAX-WS is an API for SOAP-based WS, and using it for RESTful WebServices is not the best way to go about things.

So if you're looking to implement a RESTful WebService, use JAX-RS .