CXF 和 Spring-WS 哪个框架更好? [英] Which framework is better CXF or Spring-WS?

查看:77
本文介绍了CXF 和 Spring-WS 哪个框架更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究/比较 CXF 和 Spring-WS 的 Web 服务?我需要同时作为 WS 的提供者和消费者.简而言之,有人告诉我 Spring-WS 的可配置性更强,但 CXF 更容易启动和运行.这个问题是主观的,但有助于指导我的研究.

I am in the process of researching/comparing CXF and Spring-WS for web services? I need to function both as a provider and a consumer of WS. In a nutshell, I have been told that Spring-WS is more configurable, but CXF is easier to get up and running. This question is subjective, but will help direct me in my research.

  • 您对这两个框架有什么经验?
  • 您在使用这两个框架时遇到过任何陷阱吗?
  • 您是否发现任何一方提供的有用功能可能另一方没有提供?

推荐答案

我认为最大的区别是 Spring-WS only 'contract-first' 而我相信CXF 通常是合同最后".

I think the biggest difference is Spring-WS is only 'contract-first' whilst I believe CXF is normally 'contract-last'.

http://static.springsource.org/spring-ws/sites/1.5/reference/html/why-contract-first.html

Contract-last 以 Java 代码开头,因此通常更容易上手.

Contract-last starts with Java code, so it is usually easier to get started with.

然而,它创建的 WSDL 往往更脆弱.

However, the WSDL it creates tends to be more fragile.

这篇关于CXF 和 Spring-WS 哪个框架更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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