简体   繁体   中英

Restful web service in java

I have a project and i was trying to create a restful webservis. I searched a lot and almost finished all the net documentation. Always having a problem. Can someone say me a good webservis sample which has got server and client side in java?

The standard API for RESTful web services which is going to be included in Java EE 6 (to be released later in 2009) is JAX-RS . Jersey is Sun's reference implementation of this API, which is included in Glassfish v3.

One way to do it is doing something like this:

http://java.sun.com/developer/technicalArticles/WebServices/restful/

You could try looking into using a framework like CXF , but from your question it isn't clear what kind problems you're running into.. Care to explain what you've tried already and what kind of service you're trying to build? Detailed questions get better answers..

Spring 3.0将支持REST。

I've had a good experience with Restlet . It handles both the client and server side well. The tutorials are also good enough to get you started.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM