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: | ||
− | 1. Create a JAX-RS User library from the .jar files in this Apache WINK JAX-RS Implementation library: [[Image:ApacheWinkJAXRSLibrary.zip]] [[Image:Snap5.jpg]] | + | 1. Create a JAX-RS User library from the .jar files in this Apache WINK JAX-RS Implementation library: |
+ | |||
+ | [[Image:ApacheWinkJAXRSLibrary.zip]] | ||
+ | |||
+ | [[Image:Snap5.jpg]] | ||
<br> | <br> |
Revision as of 21:36, 29 April 2010
1. Create a JAX-RS User library from the .jar files in this Apache WINK JAX-RS Implementation library:
File:ApacheWinkJAXRSLibrary.zip
2. Create a Dynamic Web Project targeting Tomcat and add the JAX-RS facet, specify org.apache.wink.server.internal.servlet.RestServlet as the Servlet classname on the JAX-RS Capabilities page:
3. Import the Src.zip archive below into the src folder of the JAXRS project:
4. Add an Initialization parameter to the JAX-RS Servlet:
5. Define the Initialization parameter name/value as javax.ws.rs.Application/com.test.AddressBookApplication:
6. Start the server and add the JAXRS project, enter the following URL in the browser to test the JAX-RS Web Service: