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

WebLogic Workshop provides a browser-based interface, Test View, through which you can test the functionality of web services. Test View acts as a client which you can use to invoke the service's methods and view the service's responses. For more complex web services, you can follow the path of processing through multiple requests and responses, or 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 a Web Service with Test View

  1. In the WebLogic Workshop IDE, open the web service to be tested.
  2. If WebLogic Server is not running, start it by selecting Tools | WebLogic Server | Start WebLogic Server from the menu bar. If WebLogic Server is running, the following indicator is visible in the status bar at the bottom of the WebLogic Workshop IDE:

  3. Click the Start button on the menu bar, shown here:

    WebLogic Workshop builds the project containing the web service, checking for errors along the way. If the build is successful, it launches a web browser to display Test View.

  4. On the Test Form page, in the boxes provided, enter data that the web service might receive as part of a client request.
  5. Click a button labeled with one of the web service's method names to invoke that method with the values you entered. The Test Form page refreshes to display a summary of your request parameters and the web service's response.
  6. Under Service Request, the summary displays what was sent by the client (from the Test View) when the method was called, including the values of method parameters.
  7. Under Service Response, the summary displays the XML response returned by the service.
  8. The Message Log at the left of the 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 is conversational, the conversation ID will be displayed in the Message Log for each conversation. Select a particular conversation ID to access continue and finish method log entries for that conversation.

  9. If you are testing a conversation that has multiple methods, you can click the Continue this conversation link to access the Continue and Finish methods. You can click Start operations to access the start methods for a new conversation.

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

Related Topics

How Do I: Start or Stop WebLogic Server?