Click Validate. Oracle Fusion Middleware Online Documentation Library

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] 8-14 Oracle Fusion Middleware Security and Administrators Guide for Web Services Set the arguments as follows: – For a SOA reference, specify the name of the SOA composite using the moduleOrCompName argument, specify soa for the moduleType argument, and the name of the SOA reference using the serviceRefName argument. – For a connection-based Web service client such as an ADF DC Web service client, ADF JAX-WS Indirection Proxy, or WebCenter client, specify the name of the client application using the application argument, specify wsconn for the moduleType argument, and the service reference name using the serviceRefName argument. – For an asynchronous Web service callback client, specify web for the moduleType argument. Specify the name of the client application or SOA composite using the application and moduleOrCompName arguments, respectively. – For all client types, specify the name of the port using the portInfoName argument. – Specify the policy to be attached using the policyURI argument. If you specify a policy that is already attached or exists, then this command enables the policy if it is disabled. For example, to attach the client policy oraclewss_username_token_ client_policy to the HelloWorld_pt of the client service, use the following command: wls:wls_domainserverConfig attachWebServiceClientPolicywls_ domainAdminServerapplication12.0, test1,wsconn,client,HelloWorld_pt,oraclewss_username_token_ client_policy ■ Use the attachWebServiceClientPolicies command to attach multiple policies to a Web service client port. Set the arguments as described for attaching a single client policy above, however you specify multiple policies to be attached using the policyURIs argument. If any of the policies that you specify in this command are already attached, then this command enables the policies that are already attached if they are disabled, and attaches the others. attachWebServiceClientPoliciesapplication, moduleOrCompName, moduleType, serviceRefName, portInfoName, policyURIs, [subjectType=None] For example, to attach the policies oraclewss_username_token_ client_policy and oraclewsrm10_policy to the HelloWorld_pt of the client service, use the following command: wls:wls_domainserverConfig attachWebServiceClientPolicieswls_ domainAdminServerapplication12.0, test1,wsconn,client,HelloWorld_pt, [oraclewss_username_token_client_policy,oraclewsrm10_policy] Please restart application to uptake the policy changes.