In the Policy History table, select a policy and click Restore or click Activate

Managing Web Service Policies 7-21 When you delete a policy, the active policy and all previous versions of the policy are deleted. To retain the active policy version and delete only the previous versions of the policy, see Versioning Web Service Policies on page 7-17. To delete a Web service policy: 1. Navigate to the Web Services Policy page, as described in Navigating to the Web Services Policies Page in Fusion Middleware Control on page 7-2. 2. From the Web Services Policies page, select a policy from the Policies table and click Delete.

3. A dialog box appears asking you to confirm the deletion. Click OK.

Generating Client Policies Once you have created the service policy, you can use the Web service WSDL to generate an equivalent client policy with the parameters required to call that service. You must use the Oracle WSDL instead of the standard WSDL to generate the client policy. The URL for the Web service must be appended with ?orawsdl, instead of ?wsdl. Generating the policy increases the likelihood that the client policy will work with the service policy. Once a policy is generated, you can edit the policy. The policy is populated with the client assertion that is the matching pair to the service assertion. For example, if the service policy contained the assertion, wss_http_token_service_template, then the generated client policy is populated with its counterpart, wss_http_token_client_ template. However, the client security policies that are generated will not contain any configuration information. Therefore, once the policies are generated, use the client assertion template and import the configuration information into your client policy. In the example, you would import configuration information from the client assertion template, wss_http_token_client_template. After you have made the desired changes to the policy, you must save the policy. Once a policy is saved, you can access it from the Web Services Management page. You can also delete any generated policies that you do not need. For example, you may want to delete duplicates of already existing MTOM or Reliable Messaging policies. To generate a Web service client policy 1. Determine the WSDL for the Web service for which you want to generate a Web service client policy. 2. Navigate to the Web Services Policy page, as described in Navigating to the Web Services Policies Page in Fusion Middleware Control on page 7-2.

3. From the Web Services Policies page, click Generate Client Policies, as shown in

Figure 7–12 . 7-22 Oracle Fusion Middleware Security and Administrators Guide for Web Services Figure 7–12 Generate Client Policies on the Web Services Policies Page 4. In the Generated Client Policies page, enter the URL to the Web service WSDL using the following format: Web_service_endpoint?orawsdl, and click the control to access the Web service and ports, as shown in Figure 7–13 . The Web_service_endpoint is the URL to the Web service. The service policy information in the Oracle WSDL published for the Web service is used as the basis for generating the initial client policies. Figure 7–13 Getting the Web Service and Ports 5. In the Generated Client Policies page Figure 7–14 , click Generate to generate the client policies, as shown in Figure 7–14 . Figure 7–14 Generated Client Policies Page Note: You must use ?orawsdl, instead of ?wsdl, to get the WSDL that is used to generate the corresponding client policy. Prepend ora to wsdl to accomplish this.