// wsdl:binding/wsdl:operation/wsdl:output
WSDLBindingOperation wsdlBindingOperation = endPoint.getBinding()
.getBindingOperation(opName);
WSDLBindingMessageReference bindingOutput = wsdlBindingOperation
.getOutput();
Policy bindingOutputPolicy = getSinglePolicy(getPoliciesAsExtensibleElements(bindingOutput));
if (bindingOutputPolicy != null) {
policies.add(getPolicyFromComponent(bindingOutput));
}
// wsdl:portType/wsdl:operation/wsdl:output
WSDLOperation wsdlOperation = wsdlBindingOperation.getOperation();
MessageReference operationOutput = wsdlOperation.getOutputMessage();
Policy operationOutputPolicy = getSinglePolicy(getPoliciesAsExtensibilityAttribute(operationOutput));
if (operationOutputPolicy != null) {
policies.add(operationOutputPolicy);
}
// wsdl:Message