if (axisService == null) {
throw new AxisFault("invalid service name");
}
AxisBinding axisBinding = null;
// at axis2
Map endPointMap = axisService.getEndpoints();
for (Object o : endPointMap.entrySet()) {
Map.Entry entry = (Map.Entry) o;
AxisEndpoint point = (AxisEndpoint) entry.getValue();
if (point.getBinding().getName().getLocalPart().equals(bindingName)) {
axisBinding = point.getBinding();
break;
}
}
if (axisBinding == null) {
throw new AxisFault("invalid binding name");
}
Policy bindingOperationMessagePolicy = null;
Iterator operations = axisBinding.getChildren();
while (operations.hasNext()) {
AxisBindingOperation currentOperation = (AxisBindingOperation) operations.next();
if (currentOperation.getName().toString().equals(operationName)) {
PolicySubject bindingOperationMessagePolicySubject =
currentOperation.getChild(messageType).getPolicySubject();