Database Reference
In-Depth Information
attachWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [subjectType=None])
An example of this is shown here:
attachWebServicePolicy(
'/soa_domain/adminServer/OrderDetailsApp', 'OrderDetails', 'web', 'GetOrderLines', 'OrderDetailsPort'
, 'oracle/wss11_username_token_with_message_protection_service_policy', 'P')
This can be used to detach a security policy applied to the service:
detachWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [subjectType=None])
An example of this is shown here:
detachWebServicePolicy(
'None', 'default/OrderBookingComposite[1.0]', 'soa', 'OrderDetailsService'
, 'GetOrderLines', 'oracle/wss11_username_token_with_message_protection_client_policy')
Enabling/disabling a policy
Policies that are attached to an endpoint are either in an enabled or disabled
state. Policy enforcement will take place only when the policy state is enabled.
This is useful as you are spared from attaching and detaching policies to end-
points every time there is a change in security requirements. When a policy is
still attached, but is in a disabled state, it has no effect at all. The syntax and a
brief usage scenario for this command is as follows:
enableWebServicePolicy(application, moduleOrCompName, moduleType, serviceName, subjectName, policyURI, [enable], [subjectType=None])
Here, setting the
enable
property value to
true
enables the attached security
policy and a Boolean value of
false
disables it.
An example of this is shown here:
enableWebServicePolicy(
'/soa_domain_dev/AdminServer/EmpDeptService', 'empDeptService', 'web', 'EmpDeptBCService', 'EmpDeptBCServiceSoapHttpPort', 'oracle/wss_saml_or_username_token_service_policy', false
)