Difference between JAX-WS, Axis2 and CXF

后端 未结 4 1570
梦如初夏
梦如初夏 2020-12-12 09:22

What is the difference between:

  1. JAX-WS
  2. Axis2
  3. CXF

All three can be used to create webservices in Java.
As of I know JAX-WS

4条回答
  •  眼角桃花
    2020-12-12 09:59

    The JAX-WS implementation built into the JDK really is just the basic soap stuff. If you need any of the more complex WS-* things like WS-Security, WS-RM, WS-Policy, etc..., you need to use one of the alternatives like CXF or Metro or Axis2. It can also depend on what you are trying to integrate with. For example, CXF has top notch Spring support as well as very good OSGi support.

    CXF also has other things besides just JAX-WS. It has a compliant JAX-RS implementation as well and supports exposing services as both REST and SOAP very well. Has a W3C compliant SOAP/JMS implementation if that type of things is required. Basically, lots of stuff not available from the in-jdk JAX-WS impl.

    Also see:

    Difference between Apache CXF and Axis

提交回复
热议问题