Description Syntax Examples detachWebServicePolicy

Web Services Custom WLST Commands 14-25 wls:wls-domainserverConfigenableWebServicePolicy soainfrasoa1HelloWorld1_0,j2wbasicPolicy,web, WssUsernameService,JRFWssUsernamePort,[oraclelog_policy, oraclewss_username_token_service_policy],true

14.3.7 detachWebServicePolicy

Command Category: Policy Management Use with WLST: Online

14.3.7.1 Description

Detach an Oracle WSM policy from a Web service port of an application or SOA composite.

14.3.7.2 Syntax

detachWebServicePolicyapplication, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [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 from which you want to detach a Web service policy. For example, domainserverapplicationversion_number To detach a policy from a port of a Web service application, this argument is required. moduleOrCompName Name of the Web module or SOA composite for example HelloWorld[1.0] from which you want to detach a Web service policy. To detach a policy from a 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 a Web service application including EJB Web services. ■ soa—Required for a SOA composite. serviceName Name of the Web service in the application or SOA composite. subjectName Name of the policy subject, port, or operation. policyURI Oracle WSM policy name URI, for example oraclelog_ 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. 14-26 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

14.3.7.3 Examples

The following example detaches the policy oraclewss_username_token_ service_policy from the port JRFWssUsernamePort of the Web module WssUsernameService. The Web service is part of the application HelloWorld1_0 for the server soa1 in the domain soainfra. wls:wls-domainserverConfigdetachWebServicePolicy soainfrasoa1HelloWorld1_0,j2wbasicPolicy,web, WssUsernameService,JRFWssUsernamePort,oraclewss_username_token_service_ policy The following example detaches the policy oraclelog_policy from the port HelloWorld_pt of the service HelloService in the SOA composite defaultHelloWorld[1.0]. wls:wls-domainserverConfigdetachWebServicePolicyNone, defaultHelloWorld[1.0], soa,HelloService,HelloWorld_pt,oraclelog_policy

14.3.8 detachWebServicePolicies