The Java EE 6 Tutorial

Testing the Methods of a Web Service Endpoint

GlassFish Server allows you to test the methods of a web service endpoint.

ProcedureTo Test the Service without a Client

To test the sayHello method of HelloService, follow these steps.

  1. Open the web service test interface by typing the following URL in a web browser:


    http://localhost:8080/helloservice/HelloService?Tester
  2. Under Methods, type a name as the parameter to the sayHello method.

  3. Click the sayHello button.

    This takes you to the sayHello Method invocation page.

    Under Method returned, you’ll see the response from the endpoint.