In Java EE 6, JAX-RS provides the functionality for Representational State Transfer (RESTful) web services. REST is well suited for basic, ad hoc integration scenarios. RESTful web services, often better integrated with HTTP than SOAP-based services are, do not require XML messages or WSDL service–API definitions. Before proceeding please read this article, Developing RESTful Web Services with JAX-RS.
Also please have look at the tutorial about "JAXB marshalling and unmarshalling", as it would be helpful to understand Restful Webservice.
For running this example, below mentioned particulars are used.
Also please have look at the tutorial about "JAXB marshalling and unmarshalling", as it would be helpful to understand Restful Webservice.
For running this example, below mentioned particulars are used.
- Tomcat 7.0.11
- JDK 1.5
- MyEclipse 8.6.1
1. Create a new Web Service Project, File -> New -> Web Service Project