From the Category menu, select the category to which this policy will belong and

Managing Web Service Policies 7-7

5. Click Validate to verify that the policy does not contain errors. For more

information on policy validation, see Validating Web Services Policies on page 7-15.

6. Click Save.

Importing Web Service Policies Follow the procedure in this section to import a policy into the Oracle WSM repository. Once the policy is imported, you can attach it to Web services and make changes to it. To import 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, click Import From File.

3. In the Create Policy From File box, enter the file path of the file in the Select Policy

File Box. Or, you can click on the Browse button and select the policy file.

4. Click OK.

Creating Custom Policies For information about creating custom Web service policies using custom assertions, see Creating Custom Assertions in Oracle Fusion Middleware Extensibility Guide for Oracle Web Services Manager. Managing Policy Assertion Templates Your Fusion Middleware installation includes predefined assertion templates that you can use to construct your policies or copy to create new policies. For additional information, see Building Policies Using Policy Assertions on page 3-5. You can add one or more assertions to a policy. The predefined assertions are described in Appendix C, Predefined Assertion Templates . Assertions are executed in the order in which they appear in the list. You can change the order of the assertions in the list by selecting the assertion and clicking the Up or Down arrow. The following sections provide more information about working with assertions: ■ Navigating to the Web Services Assertion Templates Page on page 7-8 ■ Naming Conventions for Assertion Templates on page 7-8 ■ Viewing an Assertion Template on page 7-9 ■ Searching for an Assertion Template on page 7-9 Note: The policy name you import must not already exist in the repository. Be aware that policy name and file name are different. The policy name is specified by the name attribute of the policy content; the file name is the name of the policy file. You might find it convenient for the two names to match, but it is not required. You cannot prefix the name of a policy with oracle_. Otherwise, you will receive exceptions when you try to use the policy.