简体   繁体   English

想要替换xfire来开发Web服务

[英]want to replace xfire for developing web service

I am using XFIRE to develop soap services . 我正在使用XFIRE开发肥皂服务。 what is the other best alternative to XFIRE . XFIRE的另一个最佳替代方法是什么。 I want to replace XFIRE code from other best approach beca 我想从其他最佳方法中替换XFIRE代码,因为

You can develop web services in different ways; 您可以通过不同的方式开发Web服务。 Apache CXF is the successor of XFIRE so perhaps it's the easiest path; Apache CXF是XFIRE的继任者,因此也许这是最简单的方法。 there is also a migration guide . 还有一个迁移指南 You can also using Spring-ws, but it depends if you are already familiar with spring and if you want/can adopt Spring in your project. 您也可以使用Spring-ws,但这取决于您是否已经熟悉spring,以及是否希望/可以在项目中采用Spring。 Spring web services are contract first ie You start from the wsdl (or xsd in you prefer) and write the code that handle the data incoming; Spring Web服务首先是契约式的,即您从wsdl(或您喜欢的xsd)开始,并编写处理传入数据的代码。 you can read more about this here Spring ws is very flexible and lets you handle the whole soap body allowing even to handle some ws client mistakes (in an ws implementation I handled two slightly different version of the ws with the same endpoint). 您可以在此处了解更多信息。Spring ws非常灵活,可以处理整个soap主体,甚至可以处理一些ws客户错误(在ws实现中,我使用相同的端点处理了两个稍有不同的ws版本)。

If you are writing web services, you are already using Spring and you are not afraid to manage the whole soap body you can choose Spring WS; 如果您正在编写Web服务,那么您已经在使用Spring,并且不担心要管理整个肥皂机构,可以选择Spring WS。 if you want an easy migration path (because part of your team alreay knows xfire) apache cxf is the way to go. 如果您想要一个简单的迁移路径(因为您的团队的一部分alreay知道xfire),则使用apache cxf是可行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM