Click Back to make any changes, or click Attach to complete the bulk attachment.

8-12 Oracle Fusion Middleware Security and Administrators Guide for Web Services Web service client varies based on the application type, as described in the following sections. Attaching Policies to SOA References The following procedures describe how to attach policies to SOA references. For more information about developing SOA references, see Oracle Fusion Middleware Developers Guide for Oracle SOA Suite. To attach policies to a SOA reference:

1. View the SOA reference, as described in

Viewing SOA References on page 6-9.

2. Select the Policies tab.

3. In the Directly Attached Policies section of the page, click AttachDetach.

4. From the Available Policies section of the page, select one or more policies that

you want to attach. Click Validate to validate the policy, or Check Services Compatibility to make sure that the client policies are compatible with the service policies.

5. Click Attach when you are sure that you want to attach the policy or policies.

6. Click OK.

Attaching Policies to Connection-Based Web Service Clients The following procedure describes how to attach policies to a connection-based Web service client such as an ADF DC Web service client, ADF JAX-WS Indirection Proxy, or WebCenter client. For more information about developing ADF DC Web service clients, see Using ADF Model in a Fusion Web Application in Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. To attach policies to a connection-based Web service client: 1. Use Fusion Middleware Control to expand Application Deployments. 2. Select the target application.

3. From the Application Deployment menu, select ADF, and then Configure ADF

Connections .

4. On the ADF Connections Configuration page, select a row in the Web Service

Connections list, and then use the Configure Web Service list to configure the Web Service client.

5. On the Web Service Client page, select the OWSM Policies tab.

6. In the Directly Attached Policies section of the page, click AttachDetach.

7. On the Available Policies section of the page, select one or more policies that you

want to attach. Click Validate to validate the policy, or Check Services Compatibility to make sure that the client policies are compatible with the service policies.

8. Click Attach when you are sure that you want to attach the policy or policies.

9. Click OK.

Attaching Policies to Asynchronous Web Service Callback Clients The following procedure describes how to attach policies to an asynchronous Web service Callback client. For more information about developing asynchronous Web Attaching Policies to Web Services 8-13 services and callback clients, see Developing Asynchronous Web Services in Oracle Fusion Middleware Concepts Guide for Oracle Infrastructure Web Services. To attach policies to an asynchronous Callback client: 1. Navigate to the endpoint for the asynchronous Web service, as described in Viewing the Details for a Web Service Endpoint on page 6-7.

2. Click Callback Client in the upper right portion of the endpoint page.

3. Click the Policy tab.

4. Click AttachDetach.

5. On the Available Policies portion of the page, select one or more policies that you

want to attach. Click Validate to validate the policy, or Check Services Compatibility to make sure that the client policies are compatible with the service policies.

6. Click Attach when you are sure that you want to attach the policy or policies.

7. Click OK.

Attaching Policies to Web Service Clients Using WLST The following procedure describes how to attach policies to SOA references, connection-based Web service clients such as an ADF DC Web service client, ADF JAX-WS Indirection Proxy, or WebCenter client, and asynchronous Web service callback clients. The steps that you follow are the same for each type of client. However, the argument settings will vary depending on the type of client to which you are attaching or detaching policies. 1. View the Web service clients as described in Using WLST in Viewing Web Service Clients on page 6-9. 2. Use the listWebServiceClientPorts command to display the port name and endpoint URL for a Web service client. listWebServiceClientPortsapplication,moduleOrCompName,moduleType,serviceRefNam e For example, to display the port for the service reference client: wls:wls-domainserverConfig listWebServiceClientPorts’base_ domainAdminServerapplication1V2.0’, ’test1’,’wsconn’,’client’ HelloWorld_pt 3. View the list of available policies as described in Displaying a List of the Available Policies Using WLST on page 7-2. To view only available client policies, set the subject argument to client. For example: listAvailableWebServicePolicies,client 4. To attach policies, do one of the following: ■ Use the attachWebServiceClientPolicy command to attach a single policy to a Web service client port. attachWebServiceClientPolicyapplication, moduleOrCompName, moduleType, serviceRefName, portInfoName, policyURI, [subjectType=None]