Spring-ws或Axis2或其他用于“契约优先”的东西WS的方法 [英] Spring-ws or Axis2 or Something else for "Contract-First" approach to WS

查看:211
本文介绍了Spring-ws或Axis2或其他用于“契约优先”的东西WS的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都说契约优先设计WS的方法更倾向于SOA风格设计。现在,如果我们采用可用的开源框架来实现我们的 Spring-ws 以及 Axis2 (它支持这两种样式)。我有一个设计基于SOA的电子商务应用程序的任务。松散耦合,快速响应,安全性和可扩展性是关键点。因此,从一开始就选择正确的框架非常重要。

Everyone's saying "Contract-First" approach to design WS is more inclined to SOA style design. Now, if we take the available open-source frameworks available to achieve that we have Spring-ws and also Axis2(which supports both styles). I have a task to design SOA based e-commerce app. where loose coupling, quick response, security and scalability are the key points. So it is very important to choose the right framework from the start.

根据过去的经验,你们认为哪一种或其他东西对我的要求来说是更合适的选择。

Based on past experiences, which of them or something else do you guys think to be a more appropriate option for my requirements.

推荐答案

这是一个棘手的问题。

That is a tough question.

我过去使用过Axis2,但对Spring WS来说相对较新。关于spring WS我喜欢的是关于我用来处理传入和传出请求的API(XmlBeans,JDOM,Castor等)以及与基于Spring的堆栈的出色集成的选项。

I have used Axis2 in the past but am relatively new to Spring WS. What I do like about spring WS is the options I get with respect to what API's I use to handle my incoming and outgoing requests (XmlBeans, JDOM, Castor etc.) and the excellent integration with a Spring based stack.

您提到了合同优先方法。我不确定Axis 2是否有这样的东西,但是Spring WS有一个wsdl生成器的模式。你可以在这里看到一个例子:

You mentioned the Contract First approach. I am not sure if Axis 2 has something like this but Spring WS has a schema to wsdl generator. You can see an example of this here:

http://static.springsource.org/spring-ws/sites/1.5/reference/html/tutorial.html

这两个框架都提供了你所要求的所有功能,例如松散耦合,响应,可扩展性等。就我认为而言,Spring-ws也可以提供与Acegi的良好集成,但我真的没有潜水深入到这个话题。

Both the frameworks offer all that you ask for in terms of features such as loose coupling, response, scalability etc. Spring-ws may also offer good integration with Acegi as far as I think but I have really not dived deep into that topic.

这篇关于Spring-ws或Axis2或其他用于“契约优先”的东西WS的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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