What is the simplest way to offer/consume web services in jython?

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.

Asked by: Dainton178 | Posted: 05-10-2021

Answer 1

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.

Answered by: Max873 | Posted: 06-11-2021

Answer 2

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.

Answered by: Catherine414 | Posted: 06-11-2021

Similar questions

Still can't find your answer? Check out these communities...

PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python