String serviceName = axisService.getName();
String name = serviceName + "Soap11Binding";
QName bindingName = new QName(name);
AxisBinding axisBinding = (bindingCache != null) ? (AxisBinding) bindingCache
.get(name)
: null;
if (axisBinding == null) {
axisBinding = new AxisBinding();
axisBinding.setName(bindingName);
axisBinding.setType(Java2WSDLConstants.TRANSPORT_URI);
axisBinding.setProperty(WSDLConstants.WSDL_1_1_STYLE,
WSDLConstants.STYLE_DOC);
axisBinding.setProperty(WSDL2Constants.ATTR_WSOAP_VERSION,
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
for (Iterator iterator = axisService.getChildren(); iterator
.hasNext();) {
AxisOperation operation = (AxisOperation) iterator.next();
AxisBindingOperation axisBindingOperation = new AxisBindingOperation();
axisBindingOperation.setName(operation.getName());
axisBindingOperation.setAxisOperation(operation);
String soapAction = operation.getSoapAction();
if (soapAction != null) {
axisBindingOperation.setProperty(
WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
}
axisBinding.addChild(axisBindingOperation.getName(),
axisBindingOperation);
populateBindingOperation(axisService, axisBinding,
axisBindingOperation);
}
if (bindingCache != null) {
bindingCache.put(name, axisBinding);
}
}
axisBinding.setParent(axisEndpoint);
axisEndpoint.setBinding(axisBinding);
}