bindingOperationResource.setProperty(RegistryResources
.ServiceProperties.POLICY_UUID, boPolicy.getId());
}
// Get Binding Operation Message Policies
AxisDescription boMessageIn = currentOperation
.getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
if (boMessageIn != null) {
List<PolicyComponent> boMessageInPolicyList = new ArrayList<PolicyComponent>(
boMessageIn.getPolicySubject().getAttachedPolicyComponents());
Policy boMessageInPolicy = PolicyUtil
.getMergedPolicy(boMessageInPolicyList, boMessageIn);
if (boMessageInPolicy != null) {
// Add this policy as a resource to the list
addPolicyResource(policyResources,
boMessageInPolicy, PolicyInclude.BINDING_INPUT_POLICY);
// Refer this policy from the binding operation
bindingOperationResource.setProperty(RegistryResources.ServiceProperties
.MESSAGE_IN_POLICY_UUID, boMessageInPolicy.getId());
}
}
// Get binding operaion out policy
AxisDescription boMessageOut = currentOperation
.getChild(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
if (boMessageOut != null) {
List<PolicyComponent> boMessageOutPolicyList = new ArrayList<PolicyComponent>(
boMessageOut.getPolicySubject().getAttachedPolicyComponents());
Policy boMessageOutPolicy = PolicyUtil
.getMergedPolicy(boMessageOutPolicyList, boMessageOut);
if (boMessageOutPolicy != null) {
// Add this policy as a resource to the list