Testing a Web Service Using a Standard Browser
- Open http://localhost:<port>/<project name>/jaxrs/<your url path>/0 in your browser to see the first record in XML.
Retrieving the one customer in the list
- To add a customer to the list, you need to send customer data to the service via an HTTP POST request. You can use a Firefox extension like Poster to make the request as shown below.
Sending data via HTTP POST request
- Open http://localhost:<port>/<project name>/jaxrs/<your url path> in your browser to get a list of all records in XML.
Retrieving the entire customer list
Note: The default port number for the MyEclipse Tomcat server is 8080. If you deployed your application to an application server other than MyEclipse Tomcat, use the port in the above links corresponding to your application server.