views:

242

answers:

2

Hi; Can you suggest a way or a framework or etc. for JEE in order to make simple HTTP GET/POST calls to some web services like in SOAP web services but transport format must be JSON; not XML and there must not be any wrapper around(may be some vey lightweight header) like SOAP etc.

In short, my purpose is to serve web services using JSON and HTTP Get/Post in a maximum possible lightweight solution.

Thanks

A: 

My favorite RESTful web services framework is Restlet.

If you want the ability to support a SOAP service as well as a RESTful one, check out Apache CXF.

Both of these frameworks support JSON, and either are suitable for both client side and server side applications.

dbyrne
Isn't SOAP considered RESTful?
reuscam
Nope. http://www.taranfx.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol
dbyrne
A: 

A JSON Web Service can be as simple as a servlet that parses the JSON text data from the request, and outputs text in JSON format in the response. JSON is a pretty simple format - you might not need a framework.

mbeckish
In fact this is of course possible via a servlet but, I seek for a simple framework for JSON. While writing a web service many facilities are provided (annotations etc. client server testing)by either framework or IDE but I know nothing similar for JSON...
whoi