Description Syntax Examples enableWebServiceClientPolicy

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

Command Category: Policy Management Use with WLST: Online

14.3.12.1 Description

Enable or disable a policy of a Web service client port of an application or SOA composite.

14.3.12.2 Syntax

enableWebServiceClientPolicyapplication,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURI,[enable],[subjectType=None] portInfoName The client port to which you want to attach the Oracle WSM client policy. policyURI The Oracle WSM policy name URIs, for example [oraclelog_ policy,oraclewss_username_token_client_policy] 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. subjectType Optional. Policy subject type. Valid options are: ■ P—Port. The default is P. ■ O—Not supported in this release. 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 14-32 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

14.3.12.3 Examples

The following example enables the client policy oraclewss_username_token_ client_policy of 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-domainserverConfigenableWebServiceClientPolicy soainfrasoa1jwsclient_11.1.0,WssUsernameClient,wsconn, WssUsernameClient,JRFWssUsernamePort, oraclewss_username_token_client_ policy,true The following example enables the client policy oraclelog_policy of the client port HelloWorld_pt in the SOA composite defaultHelloWorld[1.0]. wls:wls-domainserverConfigenableWebServiceClientPolicyNone, defaultHelloWorld[1.0],soa,client,HelloWorld_pt,oraclelog_policy The following example disables the client policy oraclelog_policy of the client port HelloWorld_pt in the SOA composite defaultHelloWorld[1.0]. Argument Definition application Name and path of the application for which you want to enable or disable a policy of a Web service client port. For example, domainserverapplicationversion_number To enable or disable a policy of 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 enable or disable a policy of a client port. To enable or disable a policy of a client port for 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. portInfoName The name of the client port to which you want to attach the Oracle WSM client policy. policyURI The Oracle WSM policy name URI, for example oraclewss_ username_token_client_policy enable Optional. Specifies whether to enable or disable the policy. Valid options are: ■ true—Enables the policy. The default is true. ■ false—Disables the policy. If you omit this argument, the policy is enabled. subjectType Optional. Policy subject type. Valid options are: ■ P—Port. The default is P. ■ O—Not supported in this release. Web Services Custom WLST Commands 14-33 wls:wls-domainserverConfigenableWebServiceClientPolicyNone, defaultHelloWorld[1.0],soa,client,HelloWorld_pt,oraclelog_policy, false

14.3.13 enableWebServiceClientPolicies