Python网络服务 [英] Python web service
问题描述
我正在做类似于 Ubuntu Landscape 的服务器/客户端应用程序 (http://www.canonical.com/enterprise-services/ubuntu-advantage/landscape) 用于我的学校项目.应用程序的客户端部分将向服务器发送不同的信息(磁盘使用情况、包等).我知道如何获取信息并且很热,我会在服务器端处理它们.但我不知道交换信息的最佳方式是什么.SOAP 可以吗,或者有什么更好的方法可以做到这一点?消息可以很大(例如已安装包的列表)或很小.我在看 Twisted 但不知道从哪里开始.我有使用 PHP、Java 和 C# 中的 SOAP 的经验.
I'm doing server/client application similar to Ubuntu Landscape (http://www.canonical.com/enterprise-services/ubuntu-advantage/landscape) for my school project. The client part of application will send different informations (disk usage, packages etc.) to server. I know how to get informations and hot I'll handle them on the server side. But I don't know how what is the best way to exchange informations. Would SOAP be ok or is there any better way for doing this? Messages can be large (for example a list of installed packages) or very small. I was looking at Twisted but don't know where to start. I have experience with SOAP in PHP, Java and C#.
欢迎推荐,谢谢
推荐答案
查看 XMLRPC 或 JSON-RPC,它们可能在某些原因中被所有语言通过模块或包支持.
Look into XMLRPC or JSON-RPC which is likely supported in some why by all language through modules or packages.
SOAP 完全是一种膨胀,被广泛认为是一种失败的炒作.
SOAP is a complete bloat and widely considered as a failed hype.
这篇关于Python网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!