How Do I: Test A Web Service Using WebLogic Workshop's Test View?

WebLogic Workshop provides a browser-based interface through which you can test the functionality of your web service. With this interface, Test View, you play the role of the client, invoking the service's methods and viewing the service's responses. For more complex web services, you can follow the path of processing through multiple requests and responses, even multiple services.

The tutorial included with this documentation provides an introduction to Test View, as well as other aspects of WebLogic Workshop. For more information, see Tutorial: Your First Web Service.

To Test Your Web Service with Test View

  1. In WebLogic Workshop, open the JWS file of the web service you would like to test.

  2. Ensure that WebLogic Server is running. If it is running, the following indicator will be visible in the status bar at the bottom of the WebLogic Workshop visual development environment:

  1. Click the Start button, shown here:

Clicking the Start button prompts WebLogic Workshop to build your project, checking for errors along the way. It then launches a web browser to display Test View,  through which you can test the service with sample input values.

The Test Form and Test XML tabs provide alternative ways to specify the content of the call to your service's methods. The others—Overview and Console—include additional information about the service.

  1. On the Test Form page, in the boxes provided, enter data that you web service might receive as part of a client request.

  2. Click the button labeled with your service's method name to invoke the method with the values you entered.

The Test Form page will refresh to display a summary of your request parameters and your service's response.

For services that involve multiple communications with clients, or communications with resources such as other web services, the Message Log at the left of the Test Form page displays an entry for each call to a method or callback so that you can view the data for each. Select any log entry to see the details of that interaction.

If your web service participates in a conversation with clients, the Test Form page will display the conversation ID in the Message Log. Select the conversation ID to access continue and finish methods in that conversation.

Related Topics

Test View