简体   繁体   English

是否将CXF代替Axis for Restfull SOAP调用使客户端与wsdl中的更改脱钩?

[英]Would using CXF instead of Axis for Restfull SOAP call decouple client from changes in wsdl?

Currently I am using Axis for Restfull SOAP calls to Rally's Web Service, but the application breaks every time there is a change in wsdl. 当前,我正在使用Axis对Rally的Web Service进行Restfull SOAP调用,但是,每当wsdl发生更改时,应用程序都会中断。 Would switching to CXF fix this issue? 切换到CXF是否可以解决此问题?

No. The point of a WSDL is that it's a contract. 否。WSDL的要点是它是合同。 Client applications are meant to break if there's a change to the schema. 如果架构发生更改,则客户端应用程序将中断。

If you want something less tightly coupled, you can disable schema validation (some changes will still break things though) or use something more flexible like JSON. 如果您想要一些不那么紧密的耦合,则可以禁用架构验证(尽管有些更改仍然会破坏事情)或使用更灵活的特性(例如JSON)。

Oh and there's no such thing as 'RESTful SOAP'. 哦,没有“ RESTful SOAP”这样的东西。 REST and SOAP are alternatives. REST和SOAP是替代方案。

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

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