Test View

The Test View page is loaded in your web browser when you build and start your service. You can use Test View to test the public methods of your service.

Test View has four tabs that provide information about your service:

By default, the Test Form tab is selected when the page loads.

In addition, each page lists the address of the service being tested. Each part of this address is a link to the JwsConsole, a page that lists the files in each level of the project directory.

Overview Tab

The Overview tab displays public information about your service, including:

Note: To learn how the comments associated with each method are obtained, and how you can document your web service's methods, see Documenting Web Services.

Console Tab

The Console tab displays private information about your service, including:

Test Form Tab

The Test Form tab provides a simple test environment for the public methods of your service. You can provide parameters for a method and examine its return value. You can also track and test the different parts of a conversation.

The following image shows how the Test Form tab appears for a service called HelloWorldAsync, which demonstrates a simple conversation:

To test the service, click the HelloAsync button. If this method took parameters, you would enter values for them here.

The Test Form page displays information about the service request and response, including the XML message that was returned, as shown in the following image:

If your service implements conversations, as the HelloWorldAynch service does, you can use Test View to test the methods that start, continue, or finish a conversation and the callbacks that continue or finish a conversation. You can also test multiple conversations at once.

The conversation ID that appears in the message log uniquely identifies each conversation that is underway. Click on this value to select and work with this conversation. You can view the results for each method or callback that has participated in this conversation by clicking on its name in the list. Click the Refresh link to refresh the message log.

The following image shows Test View with multiple conversations underway:

Note: To learn how the comments associated with each method are obtained, and how you can document your web service's methods, see Documenting Web Services.

Test XML Tab

The Test XML tab shows the XML data that is being sent to your service when you test its methods. You can use this page to examine and modify the XML data that is passed to a method of your service.

If your method takes parameters of a data type other than String, you must modify the parameter placeholders in the SOAP body before you click the button to call the method. For example, if your method expects an integer, you must supply a valid integer in the SOAP body.

The following image shows the Test XML tab for a service called SimpleCalc, which performs simple arithmetic calculations:

 

Warnings Tab

The Warnings tab displays warnings that are generated by the compiler when you compile and run your web service. The warnings are not errors, but information about problems your service may encounter as it is currently designed, and suggestions to remedy those problems.

WebLogic Workshop Directory

The WebLogic Workshop Directory contains a sortable list of the files that comprise the different levels of the Project directory. You can use this page to select another service to test, test a control file, and clean up the service.

There are two ways to navigate to the service directory:

You can use the WebLogic Workshop Directory to:

Related Topics

Web Service Development Cycle