JAX-WS,Axis2和CXF之间的区别 [英] Difference between JAX-WS, Axis2 and CXF

查看:196
本文介绍了JAX-WS,Axis2和CXF之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两者之间有什么区别

  1. JAX-WS
  2. Axis2
  3. CXF
  1. JAX-WS
  2. Axis2
  3. CXF

这三个都可以用来在Java中创建Web服务.
据我所知,JAX-WS是一个规范,而Axis2和CXF是实现,但是如果我没看错的话,Java 1.6则具有JAX-WS的实现.

All three can be used to create webservices in Java.
As of I know JAX-WS is a specification and Axis2 and CXF are implementations, but Java 1.6 has implementation of JAX-WS if I am not wrong.

因此,可以使用Java 1.6来开发JAX-WS Web服务而无需使用Axis2或CXF吗?那么Axis2,CXF的用途是什么?

So one can use Java 1.6 to develop JAX-WS web services without using Axis2 or CXF? Then what is the use of Axis2, CXF?

推荐答案

JDK中内置的JAX-WS实现实际上只是基本的肥皂.如果您需要任何更复杂的WS- *,例如WS-Security,WS-RM,WS-Policy等...,则需要使用CXF或Metro或Axis2之类的替代方案.它还可能取决于您要与之集成的内容.例如,CXF具有一流的Spring支持以及非常出色的OSGi支持.

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.

除了JAX-WS,CXF还具有其他功能.它也具有兼容的JAX-RS实现,并且很好地支持将服务公开为REST和SOAP.如果需要这种类型的东西,则具有符合W3C的SOAP/JMS实现.基本上,jdk中的JAX-WS impl中没有很多可用的东西.

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.

另请参阅:

Apache CXF与Axis之间的区别

这篇关于JAX-WS,Axis2和CXF之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆