Implementing WSM policies in Composites

In the following example we will show how policy sets are used to attach policies to multiple composites at once, and also how policies can be individually attached.

  1. Log into OEM Fusion Middleware Control with the WebLogic user.
  2. Expand the WebLogic Domain menu and right-click on the soabpm_domain option. Select Web Services and then Policy Sets:
    Implementing WSM policies in Composites
  3. Once the SOA domain page opens, click on the Create button to create a new policy set. This will launch a wizard that will walk through the steps required to create the policy set:
    Implementing WSM policies in Composites
  4. Enter the Name of the policy set, ensure that the Enabled checkbox is selected, select SOA Service as Type of Resources, and if desired enter a Description of the policy set:
    Implementing WSM policies in Composites
  5. In the Enter Resource Scope page, define the pattern that will be evaluated by the SOA Suite to determine whether the policy set is to be applied at runtime to a composite:
    Implementing WSM policies in Composites

    Tip

    Any composite for which the pattern evaluation results in true, will be applied with this policy set. In our example, we used a wildcard (*) so all the composites deployed in the SOA Suite server are applied with this policy set. This is a powerful feature since it allows a single set of policies to be consistently applied to a set of composites, thus taking this concern away from development teams.

  6. If desired, define the constraint expressions that should be evaluated. Constraints are used to specify environment-specific constraints, such as applying a policy set depending on whether a service is exposed to an internal or external network. In our example, we did not have such a requirement so we avoided creating constraints by simply clicking on Next:
    Implementing WSM policies in Composites

    Tip

    For further information on constraints please refer to the Specifying Run-time Constraints in Policy Sets section of OFM Security and Administrator's Guide for Web Services.

    http://docs.oracle.com/cd/E28280_01/web.1111/b32511/policy_sets.htm#CIHCJDFB

  7. Scroll down to the Available Policies section and select the policy or policies that should be attached to the composites. Click on Attach on each policy selected:
    Implementing WSM policies in Composites

    Tip

    In our example, we are attaching the policy wss_saml_or_username_token_service_policy. This policy will allow for either a SAML token or a username and password to be passed in the security header of a SOAP message.

  8. Once all desired policies have been attached, click on Next:
    Implementing WSM policies in Composites
  9. Review the Summary of the Policy Set, and finally click on Save:
    Implementing WSM policies in Composites

    Tip

    It is possible to go back and make amendments to the policy set, before it is actually saved.

  10. After saving the policy set, a yellow information box should appear in which you are informed that the policy was successfully created:
    Implementing WSM policies in Composites
  11. Click on any composite available within an SOA partition. In our example, we want to verify if the recently created policy set was applied to the composite PurchaseOrderEBS. To do so, navigate to the composite page, click on the Policies tab, and then from the Attached To/Detach From menu select a service endpoint (for example, PurchaseOrderEBS). By selecting this option it is possible to see what policies have been globally or directly attached to the service endpoint:
    Implementing WSM policies in Composites
  12. A pop-up window will open, showing what policies are globally or locally attached. This shows how all policies attached to the policy set have been attached to the service endpoint:

    Tip

    From this page it is also possible to directly attach policies into the service endpoints. It is important to note that, by default, a policy that is directly attached takes precedence over a policy that is globally attached.

    Implementing WSM policies in Composites

Tip

For more information on Policy Sets please refer to section 9 Creating and Managing Policy Sets of the OFM Security and Administrator's Guide for Web Services.

http://docs.oracle.com/cd/E28280_01/web.1111/b32511/policy_sets.htm

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset