Oracle® Fusion Middleware WebLogic Scripting Tool Command Reference 11g Release 1 (10.3.2) Part Number E13813-04 |
|
|
View PDF |
The following sections describe the WebLogic Scripting Tool (WLST) commands for Oracle Fusion Middleware Infrastructure Web services, which includes SOA composites, ADF Business Components, and WebCenter services. You can use these commands to manage Web services from the command line.
Topics in this chapter include:
For additional details about using these WLST commands for Web services, see the Security and Administrator's Guide for Web Services.
Note:
To use the Web Services custom WLST commands, you must invoke WLST from the Oracle Common home directory. See "Using Custom WLST Commands" in the Oracle Fusion Middleware Administrator's Guide.You can use WLST, in online mode, to perform Web services configuration and Oracle WSM policy management tasks. You can also use WLST commands to upgrade the Oracle Metadata Services (MDS) repository with new predefined policies with each release.
The Web services WLST commands manage deployed, active, and running Web services applications. They can be executed everywhere in WLST online mode, for example:
wls:/domain/serverConfig wls:/domain/domainRuntime
The Web services WLST configuration and policy management commands perform many of the same management functions that you can complete using Fusion Middleware Control. When using the WLST commands to manage a Web service of an ADF or WebCenter application, you can apply the change only to a Web service deployed in an application on a specific server. If the application is deployed in a cluster or multi-server environment, you need to make the same change to each of the servers to which the application is deployed. Additionally, when you set or change an attached policy in ADF and WebCenter Web service and client applications, you must restart the application for the changes to take effect.
In contrast, if you are using the WLST commands to manage a SOA composite, you only need to issue the command once, and the change is propagated to all the server instances in the composite. When you set or change an attached policy in a SOA composite, you do not need to restart it. The SOA fabric runtime engine internally implements all of the policy management changes.
The Web service WLST commands configure a Web service for a specific application. Therefore, the application path name has to uniquely identify the application and the server instance to which it is deployed.
To specify a Web service application in a WLST command, use the following format:
[/domain/server/]application[#version_number]
Parameters shown in brackets []
are optional. The following examples show the sample format for a Web service application name:
/soainfra/AdminServer/HelloWorld#1_0 /soainfra/server1/HelloWorld#1_0
If there is only one deployed instance of an application in a domain, you may omit the domain/server
parameter, as shown in the following example:
HelloWorld#1_0
In all other instances, the domain/server
parameter is required. If it is not specified and WLST finds more than one deployment of the same application on different servers in the domain, you are prompted to specify the domain and the server names.
Oracle Infrastructure Web Services client applications are deployed directly to WebLogic Server server instances. Each client application is managed separately. For example, if the application myapp
is deployed to both the AdminServer
and server1
instances in the domain mydomain
, then you need to issue configuration commands to each of the servers using the appropriate application path name:
/mydomain/AdminServer/myapp#1_0 /mydomain/server1/myapp#1_0
To specify a SOA composite in a WLST command, use the following format:
[zone/]composite[version]
The following example shows the sample format for a SOA composite application name:
soa_zone1/myComposite[1.0]
Web services WLST commands are divided into the categories described in Table 14-1.
Table 14-1 Web Services WLST Command Categories
Command Category | Definition |
---|---|
View and manage Web services for the service and client. |
|
View and manage policies for the service and client. |
|
Upgrade the Oracle WSM repository with new predefined policies provided in the latest installation of the software. |
Use the WLST commands listed in Table 14-2 to view and manage Web services for deployed, active, and running Web service applications.
Table 14-2 Web Service and Client Management WLST Commands
Use this command... | To... | Use with WLST... |
---|---|---|
List the Web service information for an application, composite, or domain. |
online |
|
List the Web service ports for a Web service application or SOA composite. |
online |
|
List Web services and port configuration for an application or SOA composite. |
online |
|
Set or change the Web service port configuration for a Web service application or SOA composite. |
online |
|
List Web service client information for an application, SOA composite, or domain. |
online |
|
List Web service client ports information for an application or SOA composite. |
online |
|
List Web service client port stub properties for an application or SOA composite. |
online |
|
Set, change, or delete a single stub property of a Web service client port for an application or SOA composite. |
online |
|
Configure the set of stub properties of a Web service client port for an application or SOA composite. |
online |
Command Category: Web Service and Client Management
Use with WLST: online
Lists the Web service information for an application, SOA composite, or domain. If you don't specify a Web service application or a SOA composite, the command lists all services in all applications and composites for every server instance in the domain. You can specify the amount of information to be displayed using the detail
argument.
The output is listed by each application deployed as shown in the following example:
/domain/server/application#version_number: serviceName=service, moduleType=web, moduleName=helloModule /soainfra/AdminServer/soa-infra: serviceName=service, moduleType=soa, compositeName=HelloWorld[1.0]
listWebServices (application,composite,[detail])
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services. For example, /domain/server/application#version_number
If specified, all Web services in the application are listed. |
composite |
Name of the SOA composite for which you want to list the Web services. For example, HelloWorld[1.0]
If specified, all Web services in the composite are listed. |
detail |
Optional. Specifies whether to list port and policy details for the Web service.
Valid values are:
|
The following example lists all the Web services in all applications and composites in the domain. Sample output is also shown in this example.
wls:/soainfra/serverConfig> listWebServices()
/soainfra/AdminServer/soa-infra :
serviceName=service, moduleType=soa, compositeName=HelloWorld[1.0]
serviceName=bpelprocess1_client_ep, moduleType=soa, compositeName=Project1[1.0]
/soainfra/AdminServer/HelloWorld#1_0 :
serviceName=WssUsernameService, moduleType=web, moduleName=j2wbasicPolicy
The following example sets the detail
argument to true
. The output from this command provides port and policy details for all applications and composites in the domain. Sample output is also shown in this example.
wls:/soainfra/serverConfig> listWebServices(None, None, true)
/soainfra/AdminServer/soa-infra :
serviceName=service, moduleType=soa, compositeName=HelloWorld[1.0]
enableTestPage: true
enableWSDL: true
HelloWorld_pt http://localhost:7001/soa-infra/services/default/HelloWorld!1.0/client
enable: true
enableREST: false
maxRequestSize: -1
loggingLevel: NULL
serviceName=bpelprocess1_client_ep, moduleType=soa,compositeName=Project1[1.0]
enableTestPage: true
enableWSDL: true
BPELProcess1_pt http://localhost:7001/soa-infra/services/default/Project1!1.0/bpelprocess1_client_ep
enable: true
enableREST: false
maxRequestSize: -1
loggingLevel: NULL
security : oracle/wss_username_token_service_policy , enabled=true
ROLE: ADMIN
Command Category: Web Service and Client Management
Use with WLST: online
List the Web service port names and the endpoint URLs for a Web service application or SOA composite.
The output will display the port name and endpoint URL of the Web service port. For example:
JRFWssUsernamePort http://localhost:7001/j2wbasicPolicy/WssUsername
listWebServicePorts(application,moduleOrCompName,moduleType,serviceName)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services port information. For example, /domain/server/application#version_number
To list the port information for an application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to list the Web services port information.
To list the port information for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite for which you want to list the port information. |
The following example lists the Web service ports and endpoint URLs for the j2wbasicPolicy
service in the soainfra/AdminServer/HelloWorld#1_0
application. Note that the WssUsernameService
module name is specified, and the moduleType
is set to web
.
wls:/soainfra/serverConfig> listWebServicePorts ( '/soainfra/AdminServer/HelloWorld#1_0', 'WssUsernameService','web','j2wbasicPolicy') JRFWssUsernamePort http://localhost:7001/j2wbasicPolicy/WssUsername
Command Category: Web Service and Client Management
Use with WLST: online
List the Web service port configuration for a Web service application or SOA composite.
The output will display the configuration information for the Web service port. For example:
enableREST: false maxRequestSize: -1
listWebServiceConfiguration(application,moduleOrCompName,moduleType,serviceName, [subjectName])
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services port configuration. For example, /domain/server/application#version_number
To list the port configuration for 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 list the Web services port configuration.
To list the port configuration for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite for which you want to list the port configuration. |
subjectName |
Optional. Policy subject, port, or operation for which you want to list configuration information. |
The following example lists the Web service and port configuration information for the application HelloWorld#1_0
for the server soa1
in the domain soainfra
. In this example, the Web module name is j2wbasicPolicy
, the service name is WssUsernameService
, and the subject is a port named JRFWssUsernamePort
.
wls:/wls-domain/serverConfig>listWebServiceConfiguration ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort')
Command Category: Web Service and Client Management
Use with WLST: online
Set or change the Web service port configuration for a Web service application or SOA composite.
setWebServiceConfiguration(application,moduleOrCompName,moduleType,serviceName, subjectName,itemProperties)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to set or change the Web services port configuration. For example, /domain/server/application#version_number
To set or change the port configuration for 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 set or change the Web services port configuration.
To set or change the port configuration for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite for which you want to set or change the port configuration. |
subjectName |
Policy subject, port or operation name for which you want to set or change the configuration information. |
itemProperties |
Configurable properties that you can set or change. Specify the properties using the following format:
Valid port configuration name and value pairs are as follows:
Note: If any configuration item contains an unrecognized property name or invalid value, this set command is rejected and an error message is displayed. |
The following example enables the port JRFWssUsernamePort
for the service WssUsernameService
in the Web module j2wbasicPolicy
. The service is in the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>setWebServiceConfiguration ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort',[("enable", "true")])
Command Category: Web Service and Client Management
Use with WLST: online
List Web service clients information for an application, SOA composite, or domain. If neither an application nor a composite is specified, the command lists information about all Web service clients in all applications and composites for every server instance in the domain. You can specify the amount of information to be displayed using the optional detail
argument.
The output is listed by each application deployed as shown in the following example:
/domain/server/application#version_number: serviceRefName=Client, moduleType=wsconn, moduleName=ClientModule /soainfra/AdminServer/soa-infra: serviceRefName=client, moduleType=soa, compositeName=HelloWorld[1.0]
listWebServiceClients(application,composite,[detail])
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web service clients. For example, /domain/server/application#version_number
If specified, all Web services clients in the application are listed. |
composite |
Name of the SOA composite for which you want to list the Web service clients. For example, HelloWorld[1.0]
If specified, all Web service clients in the composite are listed. |
detail |
Optional. Specifies whether to list port and policy details for the Web service clients.
Valid values are:
|
The following example lists information for all Web service clients in the domain.
wls:/wls-domain/serverConfig>listWebServiceClients()
The following example lists the Web service clients for the application jwsclient_1#1.10
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>listWebServiceClients('soainfra/soa1/jwsclient_1#1.10')
The following example lists the Web service clients for the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>listWebServiceClients(None,'HelloWorld[1.0]')
The following example lists details for all of the Web service clients in the domain.
wls:/wls-domain/serverConfig>listWebServiceClients(None,None,true)
Command Category: Web Service and Client Management
Use with WLST: online
List the Web service port names and the endpoint URLs for Web service clients in an application or SOA composite.
The output will display the name of the Web service client/reference port. For example:
AppModuleServiceSoapHttpPort
listWebServiceClientPorts(application,moduleOrCompName,moduleType,serviceRefName)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services port information. For example, /domain/server/application#version_number
To list the client port information for an application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to list the Web service client port information.
To list the client port information for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
Service reference name of the application or SOA composite for which you want to list the Web service client port information.
When the client is an asynchronous Web service callback client, the |
The following example lists the client ports for the WssUsernameClient
Web module in the /soainfra/soa1/jwsclient_1#1.1.0
application. Note that the moduleType
is set to wsconn
, and the serviceRefName
is set to WssUsernameClient
.
wls:/soainfra/serverConfig> listWebServiceClientPorts ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient')
The following example lists the client ports in the HelloWorld[1.0]
SOA composite. Note that the moduleType
is set to soa
, and the serviceRefName
is set to client
.
wls:/soainfra/serverConfig> listWebServiceClientPorts(None, 'HelloWorld[1.0]','soa','client')
Command Category: Web Service and Client Management
Use with WLST: online
listWebServiceClientStubProperties(application, moduleOrCompName, moduleType, serviceRefName, portInfoName)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services client port stub properties. For example, /domain/server/application#version_number
To list the client port stub properties information for an application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to list the Web services client port stub properties.
To list the client port stub properties information for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
Service reference name of the application or SOA composite for which you want to list the Web service client port stub properties. |
portInfoName |
The name of the client port for which you want to list the stub properties. |
The following example lists the client port stub properties for the JRFWssUsernamePort
port of the WssUsernameClient
Web module in the /soainfra/soa1/jwsclient_1#1.1.0
application. Note that the moduleType
is set to wsconn
, and the serviceRefName
is set to WssUsernameClient
.
wls:/soainfra/serverConfig>listWebServiceClientStubProperties ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort')
Command Category: Web Service and Client Management
Use with WLST: online
Set, change, or delete a single stub property of a Web service client port for an application or SOA composite.
setWebServiceClientStubProperty(application, moduleOrCompName, moduleType, serviceRefName,portInfoName,propName,[propValue])
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to set the Web services client port stub property. For example, /domain/server/application#version_number
To set a client port stub property for an application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to set the Web services client port stub property.
To set a client port stub property for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
Service reference name of the application or SOA composite for which you want to set the Web service client port stub property. |
portInfoName |
The name of the client port for which you want to set the stub property. |
propName |
Stub property name that you want to set, change, or delete. For example, 'keystore.recipient.alias' . |
propValue |
Optional. The stub property value, for example 'orakey' .
To remove the property, specify a blank |
The following example sets the client port stub property keystore.recipient.alias
to the value oracle
for the client port JRFWssUsernamePort
. The port is a client port of the WssUsernameClient
Web module in the /soainfra/soa1/jwsclient_1#1.1.0
application. Note that the moduleType
is set to wsconn
, and the serviceRefName
is set to WssUsernameClient
.
wls:/soainfra/serverConfig>setWebServiceClientStubProperty ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort','keystore.recipient.alias','oracle')
Command Category: Web Service and Client Management
Use with WLST: online
Configure the set of stub properties of a Web service client port for an application or SOA composite.
This command configures or resets all of the stub properties for the Oracle WSM client security policy attached to the client. Each property that you list in the command is set to the value you specify. If a property that was previously set is not explicitly specified in this command, it is reset to the default for the property. If no default exists, the property is removed.
setWebServiceClientStubProperties(application, moduleOrCompName, moduleType, serviceRefName, portInfoName, properties)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to reset the Web services client port stub properties. For example, /domain/server/application#version_number
To configure or reset the client port stub properties for an application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to reset the Web services client port stub properties.
To configure or reset client port stub properties for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
Service reference name of the application or SOA composite for which you want to reset the Web service client port stub properties. |
portInfoName |
The name of the client port for which you want to reset the stub properties. |
properties |
The list of properties to be set or changed. Properties must be specified using the following format:
For example:
To remove a property or clear the value assigned to it, specify a blank
To remove all the properties of the client port, set this argument to Sample client port stub properties are as follows:
|
The following example resets the client port stub properties ROLE
and myprop
to ADMIN
and myval
, respectively. Any other properties that were previously set for this client port are either reset to the default or removed. The client port is JRFWssUsernamePort
of the WssUsernameClient
Web module in the /soainfra/soa1/jwsclient_1#1.1.0
application. Note that the moduleType
is set to wsconn
, and the serviceRefName
is set to WssUsernameClient
.
wls:/soainfra/serverConfig>setWebServiceClientStubProperties('/soainfra/soa1/jwsclient_1#1.1.0', 'WssUsernameClient','wsconn','WssUsernameClient','JRFWssUsernamePort', [("ROLE","ADMIN"), ("myprop","myval")] )
Use the WLST commands listed in Table 14-3 to manage Oracle WSM Web service and client policies.
When you set or change an attached policy in ADF and WebCenter Web service and client applications, you must restart the application for the changes to take effect. After the policy change is completed, a reminder message is displayed prompting you to restart the application. You can stop and restart the application using the standard stopApplication
and startApplication
WLST commands. For more information about these commands, see "Deployment Commands".
Table 14-3 Web Services WLST Policy Management Commands
Use this command... | To... | Use with WLST... |
---|---|---|
Display a list of all the available Oracle Web Services Manager (WSM) policies by category or subject type. |
online |
|
List Web service port policy information for a Web service in an application or SOA composite. |
online |
|
Attach a policy to a Web service port of an application or SOA composite. |
online |
|
Attach multiple policies to a Web service port of an application or SOA composite. |
online |
|
Enable or disable a policy attached to a port of a Web service application or SOA composite. |
online |
|
Enable or disable multiple policies attached to a port of a Web service application or SOA composite. |
online |
|
Detach an Oracle WSM policy from a Web service port of an application or SOA composite. |
online |
|
Detach multiple Oracle WSM policies from a Web service port of an application or SOA composite. |
online |
|
List Web service client port policies information for an application or SOA composite. |
online |
|
Attach an Oracle WSM policy to a Web service client port of an application or SOA composite. |
online |
|
Attach multiple policies to a Web service client port of an application or SOA composite. |
online |
|
Enable or disable a policy of a Web service client port of an application or SOA composite. |
online |
|
Enable or disable multiple policies of a Web service client port of an application or SOA composite. |
online |
|
Detach a policy from a Web service client port of an application or SOA composite. |
online |
|
Detach multiple policies from a Web service client port of an application or SOA composite. |
online |
|
Configure the Web service port policy override properties of an application or SOA composite. |
online |
Command Category: Policy Management
Use with WLST: online
Display a list of all the available Oracle Web Services Manager (WSM) policies by category or subject type.
listAvailableWebServicePolicies([category],[subject])
Argument | Definition |
---|---|
category |
Optional. The policy category, for example: 'security' , 'management' . |
subject |
Optional. The policy subject type, for example: 'server' or 'client'. |
Command Category: Policy Management
Use with WLST: online
List Web service port policy information for a Web service in an application or SOA composite.
The output will display the Web service port name, the OWSM policies it has attached to it, and if applicable, any policy override properties. For example:
HelloWorldPort: security : oracle/wss_username_token_service_policy , enabled=true
listWebServicePolicies(application,moduleOrCompName,moduleType,serviceName,subjectName)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web services port policy information. For example, /domain/server/application#version_number
To list the port policy information for 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 list the Web services port policy information.
To list the port policy information for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite for which you want to list the port policy information. |
subjectName |
Policy subject, port, or operation name. |
The following example lists the Web service port policy information for the application HelloWorld#1_0
for the server soa1
in the domain soainfra
. In this example, the Web module name is j2wbasicPolicy
, the service name is WssUsernameService
, and the subject is a port named JRFWssUsernamePort
.
wls:/wls-domain/serverConfig>listWebServicePolicies ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort')
The following example lists the port policy information for the SOA composite HelloWorld[1.0]
. Note that the moduleType
is set to SOA
, the service name is HelloService
, and the subject is a port named HelloWorld_pt
.
wls:/wls-domain/serverConfig>listWebServicePolicies (None, 'HelloWorld[1.0]','soa','HelloService','HelloWorld_pt')
Command Category: Policy Management
Use with WLST: online
Attach a policy to a Web service port of an application or SOA composite.
The policyURI is validated through the Oracle WSM Policy Manager APIs if the wsm-pm application is installed on WebLogic Server and is available. If the PolicyURI that you specify in this command already is attached or exists, then this command enables the policy if it is disabled.
If the wsm-pm application is not installed or is not available, this command is not executed.
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.attachWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [subjectType=None])
Argument | Definition |
---|---|
application |
Name and path of the application to which you want to attach a Web service policy. For example, /domain/server/application#version_number
To attach a policy 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] ) to which you want to attach a Web service policy.
To attach a policy to a port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
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 'oracle/log_policy' |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example attaches the policy oracle/wss_username_token_service_policy
to the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>attachWebServicePolicy ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort','oracle/wss_username_token_service_policy')
The following example attaches the policy oracle/log_policy
to the port HelloWorld_pt
of the service HelloService
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>attachWebServicePolicy(None, 'HelloWorld[1.0]', 'soa','HelloService','HelloWorld_pt','oracle/log_policy')
Command Category: Policy Management
Use with WLST: online
Attach multiple policies to a Web service 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 any of 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.
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.attachWebServicePolicies(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURIs, [subjectType=None])
Argument | Definition |
---|---|
application |
Name and path of the application to which you want to attach the Web service policies. For example, /domain/server/application#version_number
To attach the policies 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] ) to which you want to attach Web service policies.
To attach the policies to a port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite. |
subjectName |
Name of the policy subject, port, or operation. |
policyURIs |
List of Oracle WSM policy name URIs, for example ["oracle/log_policy","oracle/wss_username_token_service_policy"]
If any of the policies that you specify 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:
|
The following example attaches the policies "oracle/log_policy", "oracle/wss_username_token_service_policy"
to the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>attachWebServicePolicies ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort', ["oracle/log_policy", "oracle/wss_username_token_service_policy"])
Command Category: Policy Management
Use with WLST: online
Enable or disable a policy attached to a port of a Web service application or SOA composite.
If the policy that you specify in this command is not attached to the port, an error message is displayed and/or an exception is thrown.
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.enableWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [enable], [subjectType=None] ))
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to enable a Web service policy. For example, /domain/server/application#version_number
To enable a policy that is 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 enable a Web service policy.
To enable a policy that is attached to a port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
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 'oracle/log_policy'
If the policy that you specify is not attached, an error message is displayed and/or an exception is thrown. |
enable |
Optional. Specifies whether to enable or disable the policy. Valid options are:
If you omit this argument, the policy is enabled. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example enables the policy oracle/wss_username_token_service_policy
attached to the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>enableWebServicePolicy ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort',"oracle/wss_username_token_service_policy",true)
The following example enables the policy oracle/log_policy
attached to the port HelloWorld_pt
for the service HelloService
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>enableWebServicePolicy(None, 'HelloWorld[1.0]', 'soa','HelloService','HelloWorld_pt','oracle/log_policy')
The following example disables the policy oracle/log_policy
attached to the port HelloWorld_pt
for the service HelloService
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>enableWebServicePolicy(None, 'HelloWorld[1.0]', 'soa','HelloService','HelloWorld_pt','oracle/log_policy',false)
Command Category: Policy Management
Use with WLST: online
Enable or disable multiple policies attached to a port of a Web service application or SOA composite.
If the policyURIs that you specify in this command are not attached to the port, an error message is displayed and/or an exception is thrown.
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.enableWebServicePolicies(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURIs,[enable],[subjectType=None] ))
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to enable the Web service policies. For example, /domain/server/application#version_number
To enable policies that are 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 enable Web service policies.
To enable policies that are attached to a port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite. |
subjectName |
Name of the policy subject, port, or operation. |
policyURIs |
List of Oracle WSM policy name URIs, for example ["oracle/log_policy","oracle/wss_username_token_service_policy"]
If the policyURIs that you specify are not attached, an error message is displayed and/or an exception is thrown. |
enable |
Optional. Specifies whether to enable or disable the policies. Valid options are:
If you omit this argument, the policies are enabled. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example enables the policies ["oracle/log_policy","oracle/wss_username_token_service_policy"]
attached to the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>enableWebServicePolicy ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort',["oracle/log_policy", "oracle/wss_username_token_service_policy"],true)
Command Category: Policy Management
Use with WLST: online
Detach an Oracle WSM policy from a Web service port of an application or SOA composite.
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.detachWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [subjectType=None])
Argument | Definition |
---|---|
application |
Name and path of the application from which you want to detach a Web service policy. For example, /domain/server/application#version_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 and the |
moduleType |
Module type. Valid options are:
|
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 'oracle/log_policy'
If the policy specified is not attached, an error message is displayed and/or an exception is thrown. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example detaches the policy oracle/wss_username_token_service_policy
from the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>detachWebServicePolicy ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort','oracle/wss_username_token_service_policy')
The following example detaches the policy oracle/log_policy
from the port HelloWorld_pt
of the service HelloService
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>detachWebServicePolicy(None, 'HelloWorld[1.0]', 'soa','HelloService','HelloWorld_pt','oracle/log_policy')
Command Category: Policy Management
Use with WLST: online
Detach multiple Oracle WSM policies from a Web service port of an application or SOA composite.
If the wsm-pm application is not installed or is not available, this command is not executed.
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.detachWebServicePolicies(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURIs, [subjectType=None])
Argument | Definition |
---|---|
application |
Name and path of the application from which you want to detach the Web service policies. For example, /domain/server/application#version_number
To detach policies 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 the Web service policies.
To detach policies from a port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceName |
Name of the Web service in the application or SOA composite. |
subjectName |
Name of the policy subject, port, or operation. |
policyURIs |
List of Oracle WSM policy name URIs, for example ["oracle/log_policy","oracle/wss_username_token_service_policy"]
If a policyURI specified is not attached, an error message is displayed and/or an exception is thrown. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example detaches the policies "oracle/log_policy", "oracle/wss_username_token_service_policy"
from the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>detachWebServicePolicies ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy','web', 'WssUsernameService','JRFWssUsernamePort', ["oracle/log_policy","oracle/wss_username_token_service_policy"])
Command Category: Policy Management
Use with WLST: online
List Web service client port policies information for an application or SOA composite.
The output will display the Web service client/reference port name and the Oracle WSM policies it has attached to it. For example:
test-port: security: oracle/wss_username_token_client_policy, enabled=true
listWebServiceClientPolicies(application, moduleOrCompName, moduleType, serviceRefName,portInfoName)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to list the Web service client port policy information. For example, /domain/server/application#version_number
To list the client port policy information for a Web services application, this argument is required. |
moduleOrCompName |
Name of the Web module or SOA composite (for example HelloWorld[1.0] ) for which you want to list the Web services port policy information.
To list the client port policy information for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
The service reference name of the application or composite. |
portInfoName |
The client port name. |
The following example lists the Web service client port policy information for the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
. In this example, the Web module name is WssUsernameClient
, the module type is wsconn
, the service reference name is WssUsernameClient
, and the client port name is JRFWssUsernamePort
.
wls:/wls-domain/serverConfig>listWebServiceClientPolicies ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort')
Command Category: Policy Management
Use with WLST: online
Attach a Oracle WSM policy to a Web service client port of an application or SOA composite.
The policyURI is validated through the Oracle WSM Policy Manager APIs if the wsm-pm application is installed on WebLogic Server and is available. If the PolicyURI that you specify in this command already is attached or exists, then this command enables the policy if it is disabled.
If the wsm-pm application is not installed or is not available, this command is not executed.
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.attachWebServiceClientPolicy(application,moduleOrCompName,moduleType, serviceRefName, portInfoName, policyURI, [subjectType=None] )
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to attach a policy to the Web service client port. For example, /domain/server/application#version_number
To attach a policy 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 policy to the client port.
To attach a policy to a client port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
The service reference name of the application or composite. |
portInfoName |
The client port to which you want to attach the Oracle WSM client policy. |
policyURI |
The Oracle WSM policy name URI, for example oracle/wss_username_token_client_policy"
If the policy that you specify is already attached or exists, then this command enables the policy if it is disabled. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example attaches the client policy oracle/wss_username_token_client_policy
to the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>attachWebServiceClientPolicy ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort',"oracle/wss_username_token_client_policy")
The following example attaches the client policy oracle/log_policy
to the client port HelloWorld_pt
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>attachWebServiceClientPolicy (None, 'HelloWorld[1.0]','soa','client','HelloWorld_pt','oracle/log_policy')
Command Category: Policy Management
Use with WLST: online
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.
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.attachWebServiceClientPolicies(application,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURIs, [subjectType=None] )
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, /domain/server/application#version_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 and the |
moduleType |
Module type. Valid options are:
|
serviceRefName |
The service reference name of the application or composite. |
portInfoName |
The client port to which you want to attach the Oracle WSM client policy. |
policyURI |
The Oracle WSM policy name URIs, for example ["oracle/log_policy","oracle/wss_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:
|
The following example attaches the policy oracle/wss_username_token_client_policy
to the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>attachWebServiceClientPolicy ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort',"oracle/wss_username_token_client_policy")
The following example attaches the policy oracle/log_policy
to the client port HelloWorld_pt
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>attachWebServiceClientPolicy (None, 'HelloWorld[1.0]','soa','client','HelloWorld_pt','oracle/log_policy')
Command Category: Policy Management
Use with WLST: online
Enable or disable a policy of a Web service client port of an application or SOA composite.
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.enableWebServiceClientPolicy(application,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURI,[enable],[subjectType=None] )
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, /domain/server/application#version_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 and the |
moduleType |
Module type. Valid options are:
|
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 oracle/wss_username_token_client_policy" |
enable |
Optional. Specifies whether to enable or disable the policy. Valid options are:
If you omit this argument, the policy is enabled. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example enables the client policy oracle/wss_username_token_client_policy
of the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>enableWebServiceClientPolicy ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort', "oracle/wss_username_token_client_policy",true)
The following example enables the client policy oracle/log_policy
of the client port HelloWorld_pt
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>enableWebServiceClientPolicy(None, 'HelloWorld[1.0]','soa','client','HelloWorld_pt','oracle/log_policy')
The following example disables the client policy oracle/log_policy
of the client port HelloWorld_pt
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>enableWebServiceClientPolicy(None, 'HelloWorld[1.0]','soa','client','HelloWorld_pt','oracle/log_policy', false )
Command Category: Policy Management
Use with WLST: online
Enable or disable multiple policies of a Web service client port of an application or SOA composite.
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.enableWebServiceClientPolicies(application,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURIs,[enable], [subjectType=None] )
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to enable or disable multiple policies of a Web service client port. For example, /domain/server/application#version_number
To enable or disable multiple policies 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 multiple policies of a client port.
To enable or disable multiple policies of a client port for a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
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 policies. |
policyURIs |
The list of Oracle WSM policy name URIs, for example ["oracle/log_policy","oracle/wss_username_token_client_policy"] . |
enable |
Optional. Specifies whether to enable or disable the policies. Valid options are:
If you omit this argument, the policies are enabled. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example enables the client policies oracle/log_policy and oracle/wss_username_token_client_policy
of the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>enableWebServiceClientPolicies ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort', ["oracle/log_policy", "oracle/wss_username_token_client_policy"], true )
Command Category: Policy Management
Use with WLST: online
Detach a policy from a Web service client port of an application or SOA composite.
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.detachWebServiceClientPolicy(application,moduleOrCompName,moduleType, serviceRefName, portInfoName, policyURI, [subjectType=None] )
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to detach a policy from a Web service client port. For example, /domain/server/application#version_number
To detach a policy 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 the policy from a client port.
To detach a policy from a client port of a SOA composite, the composite name is required and the |
moduleType |
Module type. Valid options are:
|
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 oracle/wss_username_token_client_policy"
If the policy specified is not attached, an error message is displayed and/or an exception is thrown. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example detaches the client policy oracle/wss_username_token_client_policy
from the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>detachWebServiceClientPolicy ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort','oracle/wss_username_token_client_policy')
The following example detaches the client policy oracle/log_policy
from the client port HelloWorld_pt
in the SOA composite HelloWorld[1.0]
.
wls:/wls-domain/serverConfig>detachWebServiceClientPolicy(None, 'HelloWorld[1.0]','soa','client','HelloWorld_pt','oracle/log_policy' )
Command Category: Policy Management
Use with WLST: online
Detach multiple policies from a Web service client port of an application or SOA composite.
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.detachWebServiceClientPolicies(application,moduleOrCompName,moduleType, serviceRefName,portInfoName,policyURIs, [subjectType=None] )
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, /domain/server/application#version_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 and the |
moduleType |
Module type. Valid options are:
|
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 oracle/wss_username_token_client_policy"
If the policy specified is not attached, an error message is displayed and/or an exception is thrown. |
subjectType |
Optional. Policy subject type. Valid options are:
|
The following example detaches the client policies oracle/log_policy
and oracle/wss_username_token_client_policy
from the port JRFWssUsernamePort
of the Web module WssUsernameClient
. The Web service is part of the application jwsclient_1#1.1.0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>detachWebServiceClientPolicies ('/soainfra/soa1/jwsclient_1#1.1.0','WssUsernameClient','wsconn', 'WssUsernameClient','JRFWssUsernamePort', ["oracle/log_policy","oracle/wss_username_token_client_policy"])
Command Category: Policy Management
Use with WLST: online
Configure the Web service port policy override properties of an application or SOA composite.
setWebServicePolicyOverride(application,moduleOrCompName,moduleType, serviceName, portName,policyURI,properties)
Argument | Definition |
---|---|
application |
Name and path of the application for which you want to override the Web service port policy. For example, /domain/server/application#version_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 and the |
moduleType |
Module type. Valid options are:
|
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 'oracle/log_policy' to which the override properties will be applied.
If the policy specified is not attached, an error message is displayed and/or an exception is thrown. |
properties |
Policy override properties. Properties must be specified using the following format:
For example: If this argument is set to |
The following example configures the override properties for the policy oracle/wss_username_token_service_policy
for the port JRFWssUsernamePort
of the Web module WssUsernameService
. The Web service is part of the application HelloWorld#1_0
for the server soa1
in the domain soainfra
.
wls:/wls-domain/serverConfig>setWebServicePolicyOverride ('/soainfra/soa1/HelloWorld#1_0','j2wbasicPolicy', 'web','WssUsernameService','JRFWssUsernamePort', "oracle/wss_username_token_service_policy",) [("ROLE","ADMIN"),("myprop","myval")]
Use the commands listed in Table 14-4 to update the WSM policies stored in the Oracle MDS repository.
For additional information, see "Upgrading the Oracle WSM Policies in the MDS Repository" the Security and Administrator's Guide for Web Services.
Additional MDS WLST commands are described in Chapter 9, "Metadata Services (MDS) Custom WLST Commands."
Table 14-4 Policy Repository Upgrade Commands
Use this command... | To... | Use with WLST... |
---|---|---|
Upgrade the Oracle WSM predefined policies stored in the Oracle MDS repository with any new predefined policies that are provided in the latest installation of the Oracle Fusion Middleware software. |
online |
|
Delete the existing policies stored in the Oracle MDS repository and refresh it with the latest set of predefined policies that are provided in the new installation of the Oracle Fusion Middleware software. |
online |
Command Category: Policy Repository Upgrade
Use with WLST: online
Upgrade the Oracle WSM predefined policies stored in the Oracle MDS repository with any new predefined policies that are provided in the latest installation of the Oracle Fusion Middleware software. If the repository is empty, all of the predefined policies included in the installation are loaded into the repository.
This command does not remove any existing predefined and user-defined custom policies in the repository. If a predefined policy has been modified or discontinued in a subsequent release, one of the following occurs:
For policies that have been discontinued, a message is displayed listing the discontinued policies. In this case, Oracle recommends that you no longer reference the policies and remove them using Oracle Enterprise Manager.
For policies that have changed in the subsequent release, a message is displayed listing the changed policies. Oracle recommends that you import the latest version of the policies using Oracle Enterprise Manager.
Command Category: Policy Repository Upgrade
Use with WLST: online
Delete the existing policies stored in the Oracle MDS repository and refresh it with the latest set of predefined policies that are provided in the new installation of the Oracle Fusion Middleware software. You can use the clearStore
argument to specify whether to delete all policies, including custom user policies, from the MDS repository before loading the new predefined policies.
resetWSMPolicyRepository(clearStore)
Argument | Definition |
---|---|
clearStore |
Policies to be deleted. Valid values are:
|