An E-Commerce RESTful and SOAP web service built using JAX-RS and JAX-WS.
This software project was built using a layered architecture. The two APIs are different presentations of the same core service layer.
- Filtering
- Partial response using reflection
- Pagination
- HATEOAS
- Custom ExceptionMappers
- Content negotiation (support for both XML and JSON payloads and responses)
- SOAP 1.2
- JAX-RS (Jersey)
- JAX-WS (Metro)
- JSON-B
- JAX-B
- Maven
- Tomcat
- Intellij IDEA Ultimate
- Postman
- SOAP-UI
Maven
- Change the configuration of Tomcat in
pom.xml
. - Deploy the application using the following maven command:
mvn clean compile tomcat7:redeploy
- REST: change the
{{host}}
variable in the Postman collection environment variables to match the port you chose for your Tomcat deployment - SOAP: import the project into SOAP UI
MySQL
- Create a database schema and provide the username and password in the persistence.xml
- Hibernate will automatically create the tables for you
- Run DatabasePopulator.java to populate the database with some test data