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

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

问题描述

我对 Python 真的很陌生,我一直在寻找有关如何使用 Google App Engine 在 Python 中编写 Web 服务(XML - SOAP)的示例,但没有成功.

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?

推荐答案

我自己对此很好奇,但没有找到任何东西,我决定尝试让一些东西起作用.简短的回答是,事实证明 SOAP 服务实际上可以使用最新的 alpha ZSI 库.然而,这并不简单,我所做的只是一个简单的请求,因此它可能会因复杂类型而崩溃.我会尽量找时间写一篇关于如何做的教程,并更详细地编辑这个答案.

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.

除非这是一个硬性要求,否则我会按照 jamtoday 所说的去做,并使用 REST 或 RPC 服务.SOAP 方式可能会充满麻烦.

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.

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

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天全站免登陆