Showing posts with label REST. Show all posts
Showing posts with label REST. Show all posts

Wednesday, August 6, 2014

how to expose REST services with JAX RS and Apache CXF

Framework:
1. Spring MVC
2. Maven
3. Jackson

SpringMVC vs Apache CXF:
http://architects.dzone.com/articles/apache-cxf-vs-apache-axis-vs

Chosen Framework:
Apache CXF, JAX-RS

Steps:
1. Download Apache CXF Release
2. Check the sample project bundled in CXF

Principles:
1. For POST, use json as request body to send data.
2. For GET, use uri path or parameter to send request data.

Sample Code in Github:
https://github.com/dzhou10/cxf-helloworld

Github Example:
https://github.com/dzhou10/RestDemo/tree/master/RestDemo