在 jython 中提供/使用 Web 服务的最简单方法是什么?

发布于 2024-07-05 10:37:22 字数 367 浏览 5 评论 0原文

我有一个 Tomcat 应用程序,需要提供/使用 Web 服务。 由于与 Python 中可能实现的功能相比,Java Web 服务是一场噩梦(XML、代码生成等),因此我想学习您使用 jython 而不是 Java 来提供/使用 Web 服务的经验。

到目前为止,我所做的包括将 http://pywebsvcs.sourceforge.net/ 调整为 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何止钟意 2024-07-12 10:37:22

我整理了有关如何使用 axis 在 jython 中使用 Web 服务的更多详细信息。 请在此处阅读相关内容:如何使用 Jython 和 Axis 编写 Web 服务脚本

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.

野侃 2024-07-12 10:37:22

PyServlet 帮助您配置 Tomcat 以提供 Jython 脚本来自 URL。 您可以使用这种“类似 REST”的方式来完成一些基本的 Web 服务,而无需付出太多努力。 (此处也有描述。)

我们使用一个类似的自制框架非常成功地在大型多个 Web 应用程序中提供各种数据服务。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文