}
public void checkBindings() {
for (Iterator itBd = definition.getBindings().values().iterator(); itBd.hasNext();) {
Binding binding = (Binding) itBd.next();
SOAPBinding soapBinding = WSDLUtils.getExtension(binding, SOAPBinding.class);
// R2401
if (soapBinding == null) {
error(Code.R2401, binding);
continue;
}
// R2701 R2702
if (soapBinding.getTransportURI() == null) {
error(Code.R2701, binding);
} else if (!"http://schemas.xmlsoap.org/soap/http".equals(soapBinding.getTransportURI())) {
error(Code.R2702, binding);
}
// R2706
for (Iterator itBop = binding.getBindingOperations().iterator(); itBop.hasNext();) {
BindingOperation bop = (BindingOperation) itBop.next();
if (!ensureLiteral(bop)) {
error(Code.R2706, binding);
break;
}
}
// R2705
Style bindingStyle = null;
for (Iterator itBop = binding.getBindingOperations().iterator(); itBop.hasNext();) {
BindingOperation bop = (BindingOperation) itBop.next();
SOAPOperation soapBop = WSDLUtils.getExtension(bop, SOAPOperation.class);
Style opStyle = soapBop != null ? getStyle(soapBop.getStyle()) : null;
if (opStyle == null) {
opStyle = getStyle(soapBinding.getStyle());
if (opStyle == null) {
opStyle = Style.DOCUMENT;
}
}
if (bindingStyle == null) {