Java的web服务 [英] Java WebService

查看:143
本文介绍了Java的web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Java等同于脚本的服务(如Web服务,但使用JSON而不是XML)的.NET世界的?

What is the Java equivalent to Script service (like web service but with JSON instead of XML) in the .net world?

我在找创建和使用Java invoiking网络服务的方式。我preFER找到一种方法,让我定义将作为Web服务的方法。我不喜欢的专用的JSP或Servlet为具体要求的解决方案。

I am looking for a way of creating and invoiking web services using java. I prefer to find a way that will allow me define a method that will act as web service. I don't like the solutions of "dedicated jsp or servlet" for the specific request.

有没有这样做的任何笏?

Is there any wat of doing so?

推荐答案

有很多的框架,可以帮助你做到这一点。我个人preFER春天。 但是,你可以搜索基于Java的REST风格的Web服务框架。下面是从维基百科这样的框架的列表: http://en.wikipedia.org/wiki/List_of_web_service_frameworks

There are a lot of frameworks that help you to do this. I personally prefer Spring. But you can just search for "Java based RESTful web services frameworks". Here is a list of such framework from Wikipedia: http://en.wikipedia.org/wiki/List_of_web_service_frameworks

享受。

这篇关于Java的web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆