从 WSDL 生成 PHP 代码(用于服务替换)
我们现在很少有由外部应用程序处理的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
wsdl2php-interpreter 是有限的——它不处理属性并且似乎不处理 simpleTypes。
wsdl2php-interpreter is limited -- it doesn't handle attributes and doesn't seem to handle simpleTypes.
我使用过 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 :)