哪个框架更好CXF或Spring-WS? [英] Which framework is better CXF or 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只有 '先签约合约'虽然我认为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屋!