Description Syntax Example detachWebServiceClientPolicies

Web Services Custom WLST Commands 14-35

14.3.14.3 Examples

The following example detaches the client policy oraclewss_username_token_ client_policy from 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-domainserverConfigdetachWebServiceClientPolicy soainfrasoa1jwsclient_11.1.0,WssUsernameClient,wsconn, WssUsernameClient,JRFWssUsernamePort,oraclewss_username_token_client_ policy The following example detaches the client policy oraclelog_policy from the client port HelloWorld_pt in the SOA composite defaultHelloWorld[1.0]. wls:wls-domainserverConfigdetachWebServiceClientPolicyNone, defaultHelloWorld[1.0],soa,client,HelloWorld_pt,oraclelog_policy

14.3.15 detachWebServiceClientPolicies

Command Category: Policy Management Use with WLST: Online

14.3.15.1 Description

Detach multiple policies from a Web service client port of an application or SOA composite. moduleOrCompName Name of the Web module or SOA composite for example HelloWorld[1.0] for which you want to detach the policy from a client port. To detach a policy from 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. portInfoName The client port from which you want to detach the Oracle WSM client policy. policyURI The Oracle WSM policy name URI, for example oraclewss_ username_token_client_policy If the policy specified is not attached, an error message is displayed andor an exception is thrown. subjectType Optional. Policy subject type. Valid options are: ■ P—Port. The default is P. ■ O—Not supported in this release. Argument Definition 14-36 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

14.3.15.2 Syntax

detachWebServiceClientPoliciesapplication,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURIs, [subjectType=None]

14.3.15.3 Example

The following example detaches the client policies oraclelog_policy and oraclewss_username_token_client_policy from 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-domainserverConfigdetachWebServiceClientPolicies soainfrasoa1jwsclient_11.1.0,WssUsernameClient,wsconn, WssUsernameClient,JRFWssUsernamePort, [oraclelog_policy,oraclewss_username_token_client_policy] 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 detach multiple policies from a Web service client port. For example, domainserverapplicationversion_number To detach multiple policies from 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 detach multiple policies from a client port. To detach multiple policies from 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 client port from which you want to detach the Oracle WSM client policy. policyURI The Oracle WSM policy name URI, for example oraclewss_ username_token_client_policy If the policy specified is not attached, an error message is displayed andor an exception is thrown. 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-37

14.3.16 setWebServicePolicyOverride