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

后端 未结 5 1840
生来不讨喜
生来不讨喜 2021-01-29 19:07

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 JA
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 19:32

    Can JAX-RS do Asynchronous Request like JAX-WS?

    Yes, it can surely do use @Async

    Can JAX-RS access a web service that is not running on the Java platform, and vice versa?

    Yes, it can Do

    What does it mean by "REST is particularly useful for limited-profile devices, such as PDAs and mobile phones"?

    It is mainly use for public apis it depends on which approach you want to use.

    What does it mean by "JAX-RS do not require XML messages or WSDL service–API definitions?

    It has its own standards WADL(Web application Development Language) it has http request by which you can access resources they are altogether created by different mindset,In case in Jax-Rs you have to think of exposing resources

提交回复
热议问题