Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Creating a JAX-RS Web Service"
Line 1: | Line 1: | ||
− | [[Image:ApacheWinkJAXRSLibrary.zip]] | + | [[Image:ApacheWinkJAXRSLibrary.zip]] |
− | |||
− | |||
− | [[Image: | + | 1. Create a JAX-RS User library from the .jars in the archive above:[[Image:Snap5.jpg]] |
− | |||
− | |||
− | [[Image: | + | 2. Create a Dynamic Web Project targeting Tomcat and add the JAX-RS facet:<br> [[Image:Snap1.jpg]] |
− | |||
− | |||
− | + | 3. Import | |
− | + | <br> | |
− | Start the server and add the JAXRS project, enter the following URL in the browser to test the JAX-RS Web Service: http://localhost:8080/JAXRS/jaxrs/addresses | + | [[Image:JAXRS.zip]] |
+ | |||
+ | [[Image:Snap4.jpg]] | ||
+ | |||
+ | [[Image:Snap6.jpg]] | ||
+ | |||
+ | [[Image:Snap7.jpg]] | ||
+ | |||
+ | Define the Initialization parameter name/value as javax.ws.rs.Application/com.test.AddressBookApplication like below. | ||
+ | |||
+ | [[Image:Snap8.jpg]] | ||
+ | |||
+ | [[Image:Snap9.jpg]] | ||
+ | |||
+ | Start the server and add the JAXRS project, enter the following URL in the browser to test the JAX-RS Web Service: http://localhost:8080/JAXRS/jaxrs/addresses | ||
[[Image:Snap11.jpg]] | [[Image:Snap11.jpg]] |
Revision as of 21:13, 29 April 2010
File:ApacheWinkJAXRSLibrary.zip
1. Create a JAX-RS User library from the .jars in the archive above:
2. Create a Dynamic Web Project targeting Tomcat and add the JAX-RS facet:
3. Import
Define the Initialization parameter name/value as javax.ws.rs.Application/com.test.AddressBookApplication like below.
Start the server and add the JAXRS project, enter the following URL in the browser to test the JAX-RS Web Service: http://localhost:8080/JAXRS/jaxrs/addresses