如何为Google App Engine编写Web服务? [英] How to write a Web Service for Google App Engine?

查看:178
本文介绍了如何为Google App Engine编写Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Python真的很陌生,我一直在寻找一个关于如何使用Google App Engine编写Web Service(XML-SOAP)而没有运气的例子。



任何人都可以给我一篇文章,或者给我一个关于如何做到这一点的例子吗?

解决方案

我自己对此感到好奇,没有找到任何我决定试图找到工作的东西。简而言之,事实证明,使用最新的alpha ZSI库实际上可以完成SOAP服务。然而,这并不简单,我只做了一个简单的请求,所以它可能会因为复杂的类型而崩溃。我会尽量找时间写一篇关于如何做的教程,并且更详细地编辑这个答案。



除非这是一个硬性要求,否则我会做什么jamtoday说,并与REST或RPC服务。 SOAP方式可能会遇到麻烦。

更新:对于任何感兴趣的人,我已经写了关于如何将SOAP服务部署到Google App Engine的教程。这是一个漫长的过程,所以我只是链接到它,而不是粘贴在这里。


I am really new to Python and I have been looking for an example on how to write a Web Service (XML - SOAP) in Python with Google App Engine with no luck.

Can anyone point me to an article or give me an example on how to do this?

解决方案

I was curious about this myself and not finding anything I decided to try to get something to work. The short answer is that it turns out a SOAP service can actually be done using the latest alpha ZSI library. However it isn't simple and I didn't do much more than a simple request so it could fall apart with a complex type. I'll try to find time to write a tutorial on how to do it and edit this answer with more detail.

Unless this is a hard requirement I would do what jamtoday says and go with a REST or RPC service. The SOAP way could be filled with trouble.

Update: For anyone interested I've written a tutorial on how to deploy a SOAP service to the Google App Engine. It is long process so I'm just linking to it instead of pasting it all here.

这篇关于如何为Google App Engine编写Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆