从 WSDL 生成 PHP 代码(用于服务替换)

发布于 2024-09-16 18:14:22 字数 421 浏览 3 评论 0原文

我们现在很少有由外部应用程序处理的 Web 服务,我们计划将它们替换为新的自己的实现。

是否有一些工具/类可以生成与我们现在拥有的 WSDL 100% 兼容的常用 php 接口和结构?

我必须重新实现这个 wsdl 接口,并且我必须确定,该接口本身(不是逻辑实现)不会以任何方式改变(甚至 WSDL 位置也必须保持原样)

我已经找到了一些项目例如:http://code.google.com/p/wsdl2php-interpreter

如果你们中的任何人都使用过类似的东西,请与我分享技巧、工具推荐等。

PS 将在 Yii 框架和 CWebService 类之上重新实现

We have few Web Services witch now are handled by an external application, and we plan to replace them as an new own implementation.

Is there some tool/class witch will generate stock php interface and structures 100% compatible with those WSDL's we have now?

I'll have to re-implement this wsdl interface, and i have to be sure, that interface itself (not a logic implementation), will not change in any way (even WSDL location have to stay as is)

I have found some projects like: http://code.google.com/p/wsdl2php-interpreter

If any of You have used some things like that, please share with me tips, tools recommendations etc.

PS
re-implementation will be made on top of Yii framework and CWebService class

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

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

发布评论

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

评论(2

梦过后 2024-09-23 18:14:22

wsdl2php-interpreter 是有限的——它不处理属性并且似乎不处理 simpleTypes。

wsdl2php-interpreter is limited -- it doesn't handle attributes and doesn't seem to handle simpleTypes.

一袭水袖舞倾城 2024-09-23 18:14:22

我使用过 http://code.google.com/p/wsdl2php-interpreter并根据生成的代码按照 Yii giude 编写了一个 Web 服务控制器,一切正常且符合预期:)

I have used http://code.google.com/p/wsdl2php-interpreter and based on generated code wrote an web service controllers following a Yii giude and everything works fine and as expected :)

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