Zend 框架 XML-RPC?
我想使用 Zend Framework 构建一个基于 HTTP 的 XML 配置接口。 Zend_XmlRpc_Server 应该用于此目的吗?如果是这样,您能推荐一些使用指南吗? (特别是检索传入 XML 并解析它的部分。)
I would like to build an XML over HTTP provisioning interface using Zend Framework. Should Zend_XmlRpc_Server be used for this purpose? If so, can you recommend any guides on using it? (Specifically the part retrieving incoming XML and parsing it.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一种什么样的服务? - 您会发送二进制数据还是短文本?所有客户端都主要使用 PHP 还是您预计会有广泛的客户端?
通常,如果您正在做一个基于 Web 的小型服务,REST 就可以解决问题,它很容易开发和使用,甚至可以使用简单的 JS 前端(例如 jQuery)。
如果是更复杂的事情,那么使用 SOAP 不会出错,尽管它的开发有点复杂。确保您使用 SoapUI 武装自己
XmlRPC 有一些限制,尤其是发送二进制数据。有一些彻底的比较,请查看 此博客
What kind of service is it? - will you send binary data or rather short texts? Will all clients be in PHP mostly or you are foreseeing a wide range of clients?
Usually if you're doing a web-based small service, REST will do the trick, it's easy to develop and consume, even by plain JS frontends, such as jQuery.
If it's something more complex, you can't go wrong with SOAP, though it's a bit complex in developing. Make sure you arm yourself with SoapUI
XmlRPC has some limitations, especially sending binary data. There's some thorough comparison to have a look at this blog