}
ji.setBindingExt(bindingExt);
}
private void doCustomizeOperation(JavaInterface ji, JavaMethod jm, BindingOperation bo) {
JAXWSBinding bindingExt = null;
List extElements = bo.getExtensibilityElements();
if (extElements.size() > 0) {
Iterator iterator = extElements.iterator();
while (iterator.hasNext()) {
Object obj = iterator.next();
if (obj instanceof JAXWSBinding) {
bindingExt = (JAXWSBinding)obj;
jm.setBindingExt(bindingExt);
return;
}
}
}
String portTypeName = ji.getWebServiceName();
String operationName = bo.getName();
bindingExt = CustomizationParser.getInstance().getPortTypeOperationExtension(portTypeName,
operationName);
if (bindingExt != null) {
if (!bindingExt.isSetMimeEnable() && ji.getBindingExt() != null
&& ji.getBindingExt().isSetMimeEnable() && ji.getBindingExt().isEnableMime()) {
bindingExt.setSetMimeEnable(true);
bindingExt.setEnableMime(true);
}
} else if (ji.getBindingExt() != null) {
bindingExt = new JAXWSBinding();
if (ji.getBindingExt().isSetMimeEnable() && ji.getBindingExt().isEnableMime()) {
bindingExt.setSetMimeEnable(true);
bindingExt.setEnableMime(true);
}
} else {
// TBD: There is no extensibilityelement in port type
bindingExt = new JAXWSBinding();
}
jm.setBindingExt(bindingExt);
}