throw new IllegalArgumentException("BindingInfo is not an instance of SoapBindingInfo");
}
//todo: I think its a bug that we handover only the localPart of the operation.
// Needs to be fixed in ws-security-policy-stax
OperationPolicy operationPolicy = new OperationPolicy(localName);
operationPolicy.setPolicy(policy.getPolicy());
operationPolicy.setOperationAction(soapOperationInfo.getAction());
operationPolicy.setSoapMessageVersionNamespace(soapNS);
operationPolicies.add(operationPolicy);
}
}