Description Syntax Examples setWebServicePolicyOverride

Web Services Custom WLST Commands 14-37

14.3.16 setWebServicePolicyOverride

Command Category: Policy Management Use with WLST: Online

14.3.16.1 Description

Configure the Web service port policy override properties of an application or SOA composite.

14.3.16.2 Syntax

setWebServicePolicyOverrideapplication,moduleOrCompName,moduleType, serviceName, portName,policyURI,properties

14.3.16.3 Examples

The following example configures the override properties for the policy oraclewss10_message_protection_service_policy for 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-domainserverConfigsetWebServicePolicyOverride soainfrasoa1HelloWorld1_0,j2wbasicPolicy, Argument Definition application Name and path of the application for which you want to override the Web service port policy. For example, domainserverapplicationversion_number To override properties on a policy attached to 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] for which you want to override a Web service port policy. To override properties on a policy attached to 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. ■ 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 to which the override properties will be applied. If the policy specified is not attached, an error message is displayed andor an exception is thrown. properties Policy override properties. Properties must be specified using the following format: [name,value] For example: [myprop,myval] If this argument is set to None, then all policy overrides are removed. 14-38 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference web,WssUsernameService,JRFWssUsernamePort, oraclewss10_message_protection_service_policy, [keystore.sig.csf.key,sigkey]

14.4 Policy Set Management Commands

Policy sets enhance the security and manageability of an enterprise by providing a mechanism to globally attach one or more policies to a subject type. Using policy sets, an administrator can specify a default set of policies to be enforced even if none are directly attached. For detailed information about determining the type and scope of resources a policy set can be attached to, see Creating and Managing Policy Sets in the Security and Administrators Guide for Web Services. All policy set creation, modification, or deletion commands must be performed in the context of a repository session. A repository session can only act on a single document. Use the WLST commands listed in Table 14–4 to manage globally-available WSM Web service policy sets. Note: The procedures in this chapter apply to Oracle Infrastructure Web Services only. To view the help for the WLST commands described in this chapter, connect to a running instance of the server and enter helpwsmManage. Table 14–4 Web Services WLST Globally-available Policy Set Management Commands Use this command... To... Use with WLST... beginRepositorySession Begin a session to modify the Oracle WSM Repository. Online commitRepositorySession Write the contents of the current session to the Oracle WSM repository. Online describeRepositorySession Describe the contents of the current repository session. Online abortRepositorySession Abort the current Oracle WSM Repository modification session, discarding any changes that were made to the repository during the session. Online createPolicySet Create a new, empty policy set. Online listPolicySets Lists the policy sets in the repository. Online clonePolicySet Clone a new policy set from an existing policy set. Online displayPolicySet Display the configuration of a specified policy set. Online modifyPolicySet Specify an existing policy set for modification in the current session. Online enablePolicySet Enable or disable a policy set. Online enablePolicySetPolicy Enable or disable a policy attachment for a policy set using the policys URI. Online