views:

6657

answers:

5

Hello all,

I am simply wondering how to write a Web Service (XML - SOAP) for Google App Engine? I am really new with Python and I have been looking for example for a while, but no chance.

Does anybody could point me out any article or simply could give me an example of a Web Service in Python with Google App Engine?

Thanks!

A: 

Here is a Python Web Services project that might be helpful.

EDIT

And here is a SOAP consuming demonstration....

Mitchel Sellers
Actually that search won't give you any helpful examples. From all accounts it probably just can't be done.
carson
There is no examples and the Python Web Services seems to be dead.
Martin
Just put in another link to code examples.
Mitchel Sellers
The question is not about how to consume a Web Service in Python, but how to write one.
Martin
+2  A: 

If you want to do something with App Engine specifically, there are libraries that will make it much faster on your end. I'd recommend looking at the XML-RPC and REST examples.

http://appengine-cookbook.appspot.com/recipe/xml-rpc-server-using-google-app-engine/

http://github.com/fczuardi/gae-rest/tree/master

jamtoday
+5  A: 

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.

carson
+6  A: 

Someone has written a great blog post about the subject: http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/.

Martin
Amusingly, your entire answer is a link to a post someone else wrote and put in their answer. (This has been dug up now randomly...)
ck
A: 

Hello all,

I know this is an old thread but just in case if someone happens to read this. I have just start an open source project for creating web services on GAE.

Project site: http://code.google.com/p/webserviceservlet/

Hope this is helpful.

EDIT: Just noticed that this is a python question and the link project is java project....

Miki