Description Syntax Examples attachWebServiceClientPolicies

14-30 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference The following example attaches the client policy oraclelog_policy to the client port HelloWorld_pt in the SOA composite defaultHelloWorld[1.0]. wls:wls-domainserverConfigattachWebServiceClientPolicy None, defaultHelloWorld[1.0],soa,client,HelloWorld_pt,oraclelog_ policy

14.3.11 attachWebServiceClientPolicies

Command Category: Policy Management Use with WLST: Online

14.3.11.1 Description

Attach multiple policies to a Web service client port of an application or SOA composite. The policyURIs are validated through the Oracle WSM Policy Manager APIs if the wsm-pm application is installed on WebLogic Server and is available. If the policies that you specify in this command are already attached or exist, then this command enables the policies that are already attached if they are disabled, and attaches the others. If the wsm-pm application is not installed or is not available, this command is not executed.

14.3.11.2 Syntax

attachWebServiceClientPoliciesapplication,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURIs, [subjectType=None] Note: Policy changes made using this WLST command are only effective after you restart your application. For ADF and WebCenter applications, a message is displayed to remind you to restart your application. Argument Definition application Name and path of the application for which you want to attach Oracle WSM client policies to the Web service client port. For example, domainserverapplicationversion_number To attach policies to a client port of a Web service application, this argument is required. moduleOrCompName Name of the Web module or SOA composite for example HelloWorld[1.0] for which you want to attach the policies to the client port. To attach policies to a client port of a SOA composite, the composite name is required for example defaultHelloWorld[1.0], and the moduleType argument must be set to soa. moduleType Module type. Valid options are: ■ web—Use with asynchronous Web service callback client. ■ soa—Required for a SOA composite. ■ wsconn—Use with a connection-based Web service client such as an ADF DC Web service client, ADF JAX-WS Indirection Proxy, or WebCenter client. serviceRefName The service reference name of the application or composite. Web Services Custom WLST Commands 14-31

14.3.11.3 Examples

The following example attaches the policy oraclewss_username_token_ client_policy to the port JRFWssUsernamePort of the Web module WssUsernameClient. The Web service is part of the application jwsclient_ 11.1.0 for the server soa1 in the domain soainfra. wls:wls-domainserverConfigattachWebServiceClientPolicy soainfrasoa1jwsclient_11.1.0,WssUsernameClient,wsconn, WssUsernameClient,JRFWssUsernamePort,oraclewss_username_token_client_ policy The following example attaches the policy oraclelog_policy to the client port HelloWorld_pt in the SOA composite defaultHelloWorld[1.0]. wls:wls-domainserverConfigattachWebServiceClientPolicy None, defaultHelloWorld[1.0],soa,client,HelloWorld_pt,oraclelog_ policy

14.3.12 enableWebServiceClientPolicy