Skip Headers
Oracle® Web Services Manager Administrator's Guide
10g (10.1.3.3.0)

Part Number E10299-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

B Oracle Web Services Manager Test Page

This appendix includes the following sections:

Oracle Web Services Manager (Oracle WSM) provides a test page for your use in validating Web service operation in environments where Oracle WSM is deployed. The Oracle WSM test page automates the generation of valid Web service requests that are needed for tests. Oracle WSM gives you a method for testing a remote Web service to verify that it is functional prior to registering it to an Oracle WSM Gateway or Oracle WSM Agent.

Use the Test Web Service page to test whether your JAX-RPC or REST Web service deployed successfully. You can use the Test Web Service page to perform the following tasks:

Viewing the Web Service WSDL

To test your WSDL and see if you can access the Web service, you must make a request to the Oracle WSM Gateway to which the WSDL is registered. You must get the URL to which you make your request.

To view the WSDL for the Web service

  1. From the navigation pane of Web Services Manager Control, select Policy Management, then select Register Services.

  2. Click Services for the gateway where the service is registered.

  3. In the List of Services, click Edit for the service (Figure B-1).

    Figure B-1 List of Services Page

    Description of Figure B-1 follows
    Description of "Figure B-1 List of Services Page"

  4. In the Edit Service page, copy the URL in the Service WSDL URL field (Figure B-2).

    Figure B-2 Copying the Service WSDL URL

    Description of Figure B-2 follows
    Description of "Figure B-2 Copying the Service WSDL URL"

Testing Your Web Services

This section describes how to use the Test Web Service page to verify that you are receiving the expected results from the Web service.

To test your Web service

  1. From the navigation pane of Web Services Manager Control, select Tools, then select Test Page to display the Test Web Service page. (Figure B-3).

    Figure B-3 Test Web Service Page

    Description of Figure B-3 follows
    Description of "Figure B-3 Test Web Service Page"

  2. Enter the WSDL URL in the box, and click Submit Query.

    The page refreshes (Figure B-4) and displays the endpoint URL of the WSDL and the port. Use Port to specify the protocol and network address used to access the Web service. You can configure your test to perform different tasks as described in the sections that follow.

Figure B-4 Test Web Service Page with Additional Parameters

Description of Figure B-4 follows
Description of "Figure B-4 Test Web Service Page with Additional Parameters"

Editing Values in the Test Web Service Page

The Test Web Service page allows you to test any of the operations exposed by a JAX-RPC or REST Web service. By default, the parameters and attributes that can be edited are displayed in an HTML form. Optional parameters and attributes on the form are indicated by a check box.

Select the check box to provide a value for the parameter.

Note:

To distinguish attributes from parameters in the HTML Form, attributes are preceded with an at sign (@).

Use the Operation list to select the Web service operation that you want to test.

A plus sign (+) in the form indicates that you can add additional copies of a structure.

The letter X in the form indicates that you can remove copies of a structure that you do not want to use.

Editing the Test Web Service Page as XML Source

Instead of entering values for a JAX-RPC or REST Web service operation in an HTML form, you can enter them directly in XML source code. To do this, select the XML Source option on the Test Web Service page.

Note:

If you enter values in the XML source, you do not have to precede attributes with at signs (@).

If you enter values for an operation in the XML source and then toggle to the HTML Form mode, the values you entered will not be preserved. The form will be displayed, cleared of any values.

How to Use the Test Web Service Page

Remember the following when using the Test Web Service page:

  • Click the plus sign (+) next to the feature to reveal the parameters. The specific parameters are described in detail in the sections that follow.

  • You must explicitly indicate that you want to test a particular feature by selecting it. Select the Include in Header check box or the Enable check box next to the name of the feature. If you do not select the check box, the feature will not be included in the test, even if your fill in values for the parameters.

Testing WS-Security and Messaging Features

You can invoke a JAX-RPC Web service operation with different values for security and reliability features. To reveal the parameters for these features, select the check boxes next to Reliable Messaging and WS-Security. Select the Include in Header check box to enable these features in the test.

Note:

REST Web services, as implemented by Oracle Application Server Web Services, do not support security or reliability features. If you specify any of the security or reliability options for a REST Web service request, they will be ignored.

Reliable Messaging Parameters

Select the Reliable Messaging check box to indicate that reliability features will participate in the test. A reliability SOAP header will be inserted into the SOAP envelope of the request. Figure B-5 shows the parameters you can set.

  • Duplicate Elimination – Turning this feature on inserts the Duplicate Elimination reliability header into the message. This tells the reliable end point to eliminate duplicates of the messages that will be sent. The default value is on.

  • Guaranteed Delivery – Turning this feature on inserts the Guaranteed Delivery reliability header into the message. This tells the reliable end point that it must acknowledge receiving the message. The default value is on.

  • Reply to URL – Indicates the URL to which acknowledgments and faults will be sent for messages that want asynchronous acknowledgments. The URL is typically the host name of the client, with the port that the listener is on.

  • Reply Pattern – Indicates how the client can interact with the end point. The valid values are: Callback (asynchronous acknowledgment or fault), or Poll (the acknowledgment or fault must be polled for). The default value is Poll.

Figure B-5 Reliable Messaging Parameters on the Test Web Service Page

Description of Figure B-5 follows
Description of "Figure B-5 Reliable Messaging Parameters on the Test Web Service Page"

WS-Security Parameters

Select the WS-Security check box to indicate that security features will participate in the test. A security SOAP header will be inserted into the SOAP envelope. You can choose different settings for the User Name and Password parameters (Figure B-6).

Figure B-6 WS-Security Parameters on the Test Web Service Page

Description of Figure B-6 follows
Description of "Figure B-6 WS-Security Parameters on the Test Web Service Page"

Invoking the Oracle WSM Agent

Use the Oracle WSM Agent parameter (Figure B-7) to execute the Web service request through the Oracle WSM Agent. The agent applies any policies that have been configured for it on the Web service request. The Configuration Location is the directory location where the Oracle WSM Agent is installed. Use a fully qualified path for this directory location.

Figure B-7 Oracle WSM Agent Parameters on the Test Web Service Page

Description of Figure B-7 follows
Description of "Figure B-7 Oracle WSM Agent Parameters on the Test Web Service Page"

Enabling HTTP Authentication for the Web Service Test

Select the Show Transport Info check box to display the HTTP Authentication options for the JAX-RPC or REST Web service (Figure B-8). If the HTTP service you are testing is password protected, the parameters under Show Transport Info allow you to provide a user name and password. You can also specify a value for SOAP Action in case the service has to provide any specialized filtering on the SOAP request.

Figure B-8 HTTP Authentication Parameters on the Test Web Service Page

Description of Figure B-8 follows
Description of "Figure B-8 HTTP Authentication Parameters on the Test Web Service Page"

Stress Testing the Web Service Operation

Select the Perform Stress Test check box to display the options to create and configure a continuous series of invocations of the JAX-RPC or REST Web service operation (Figure B-9).

Figure B-9 Stress Testing Parameters on the Test Web Service Page

Description of Figure B-9 follows
Description of "Figure B-9 Stress Testing Parameters on the Test Web Service Page"

When you invoke the test, a stress report page is returned. The report page identifies the service end point and operation being tested, the size of the message sent, the number of concurrent threads on which it is run, the number of times it is run on each thread, and the delay between each operation invocation.

Invoking the Test for a JAX-RPC Web Service

Click Invoke to send the message as a SOAP request to the JAX-RPC Web service end point. The Test Result page displays the response from the service. The response can be displayed in formatted XML (default) or as raw XML (wire format).

Invoking the Test for a REST Web Service

The Test Web Service page for a REST Web service allows you to send the test message to the REST service as either an XML REST POST or GET operation. In addition, Oracle Application Server Web Services gives you the option of sending the message as a SOAP request.

The Test Web Service page provides the following options that allow you to invoke the Web service operation on the test message:

Reusing Your Test

Once you have configured the Test Web Service page to run a particular test, you can save these settings so that you can reuse the test at a later time. Select the check box next to Save Test, and enter a name and description for your test (Figure B-10).

Figure B-10 Save Test Parameters on the Test Web Service Page

Description of Figure B-10 follows
Description of "Figure B-10 Save Test Parameters on the Test Web Service Page"

To run this test again, select Tools in the navigation pane, then select Saved Tests. Your test appears in the List of Tests. You can run your test again by clicking Run, or modify the test by clicking Edit.