The Java EE 6 Tutorial, Volume I

ProcedureTesting the JAXRSHelloWorld Example

  1. Open the project javaeetutorial/jaxrs/JAXRSHelloWorld in NetBeans IDE.

  2. Right-click the project node, JAXRSHelloWorld, and select Test RESTful Web Services.

  3. Click the helloWorld service in the left pane.

  4. The Get(text/html) method is selected by default. Click Test.

  5. The response Hello World, displays in the lower pane, as shown in the following figure.

    Figure 13–1 Testing JAXRSHelloWorld Web Service

    Browser displaying the result of testing the helloWorld
method, which is the words Hello World in a section of the window titled Response.