nuSoap 还是 Zend Soap?

发布于 2024-08-12 00:47:33 字数 81 浏览 5 评论 0原文

我想知道 nusoap 和 ZendSoap 之间的区别,哪个最好?各自有什么优点和缺点?使用过这两种技术的人可以进行比较吗?

谢谢

I would like to know the differences between nusoap and ZendSoap, which is the best? what benefits and disadvantages of each? Anyone who has used both technologies could make this comparison?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

萌逼全场 2024-08-19 00:47:33

底线:我建议 Zend Soap。进一步解释...

NuSOAP 缺点

  1. 完全用 PHP 编写。这意味着它相对较慢。
  2. 确实最近更新过,但它仍然是 1.0 之前的版本,并且在该更新之前,它自 2007 年以来就没有更新过。因此,我不会说这是一个真正活跃的项目。
  3. 也许现在已经修复了,但是当我过去使用它时,它与 PHP Soap 冲突(例如,使用相同的类型名称),并且在我用于所有开发的 E_STRICT 下表现不佳。

NuSOAP Pros

  1. 为您处理 WSDL 生成,为您省去这项繁琐且容易出错的任务。
  2. 其支持的功能非常灵活。

PHP SOAP 缺点

  1. 无法提供生成 WSDL 的方法。
  2. 使用 SOAP 标头很痛苦。

PHP SOAP 优点

  1. 用 C 编写并编译,因此运行速度非常非常快。
  2. 使用起来非常简单,无需使用第三方代码库。
  3. 与其他 PHP 5 功能(例如 SimpleXML)完美集成。

Zend 缺点

  1. 需要使用第三方代码框架。该框架是模块化的,因此您可以挑选出您需要的部分,但引入整个框架要容易得多。 (不过,这并不意味着您需要为应用程序的其余部分使用该框架 - 仅使用 SOAP 位非常简单。)

Zend Pros

  1. 构建在 PHP SOAP 之上,而不是替换它。因此,您可以获得很大的速度优势以及额外的功能。
  2. 填补了 PHP SOAP 中的大部分漏洞,例如简单的 WSDL 生成和更简单的配置。
  3. 与 PHP 5 的其余部分集成得非常好。
  4. 在一些主要行业重量级人物的支持下正在进行非常积极的开发。

Bottom line: I suggest Zend Soap. To explain further...

NuSOAP Cons

  1. Is written entirely in PHP. This means it's relatively slow.
  2. Was indeed recently updated, but it's still pre-1.0, and prior to that update, it hadn't been updated since 2007. Thus, I wouldn't say it's a real active project.
  3. Perhaps fixed now, but when I've used it in the past, it's conflicted with PHP soap (e.g., using the the same type names), and it's not fared well under E_STRICT, which I use for all development.

NuSOAP Pros

  1. Handles WSDL generation for you, saving you this tedious, error-prone task.
  2. Is flexible with the features it supports.

PHP SOAP Cons

  1. Provides no way to generate a WSDL.
  2. Is a pain to use with SOAP headers.

PHP SOAP Pros

  1. Is written in C and compiled, and so runs very, very fast.
  2. Is very simple to use without the need to use third-party code libraries.
  3. Integrates nicely with other PHP 5 features, such as SimpleXML.

Zend Cons

  1. Requires use of a third-party code framework. The framework is modular, so you can pick out the parts you need, but it's much easier just to bring in the whole thing. (Though, this does not mean you need to use the framework for the rest of your app - using just the SOAP bits is trivially easy.)

Zend Pros

  1. Builds onto PHP SOAP, rather than replacing it. Thus, you get much of the speed advantage, plus extra features.
  2. Fills in most of the holes in PHP SOAP, such as easy WSDL generation and easier configuration.
  3. Integrates very nicely with the rest of PHP 5.
  4. Is undergoing very active development with support from some major industry heavyweights.
徒留西风 2024-08-19 00:47:33

Nusoap 是一个已停产的项目(自 2007 年以来不再积极开发)。 ZendSoap 可能是最好的方法。

Nusoap is discontinued project (not actively developed since 2007). ZendSoap is probably the best way to go.

静谧 2024-08-19 00:47:33

它并没有停止。
有当前版本 0.9.5 可供下载,从 2010 年 4 月 26 日起,位于 http://sourceforge .net/projects/nusoap/files/

以及在有来自 cvs 的更新之前

it isn't discontinued.
there is a current version 0.9.5 for download, from 2010-04-26 at http://sourceforge.net/projects/nusoap/files/

and before there was updates from cvs

佞臣 2024-08-19 00:47:33

nusoap 支持 php4

zend soap 支持 php5

nusoap support php4

zend soap support php5

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文