views:

366

answers:

2

I have an application for Tomcat which needs to offer/consume web services. Since Java web services are a nightmare (xml, code generation, etc.) compared with what is possible in Python, I would like to learn from your experience using jython instead of java for offerring/consuming web services.

What I have done so far involves adapting http://pywebsvcs.sourceforge.net/ to Jython. I still get errors (namespaces, types and so), although some of it is succesful for the simplest services.

A: 

PyServlet helps you configure Tomcat to serve up Jython scripts from a URL. You could use this is a "REST-like" way to do some basic web services without much effort. (It is also described here.)

We used a similar home grown framework to provide a variety of data services in a large multiple web application very successfully.

Joe Skora
+2  A: 

I've put together more details on how to use webservices in jython using axis. Read about it here: How To Script Webservices with Jython and Axis.