return hasAnnotation;
}
protected BindingInfo createBindingInfo() {
BindingFactoryManager mgr = bus.getExtension(BindingFactoryManager.class);
String binding = bindingId;
if (binding == null && bindingConfig != null) {
binding = bindingConfig.getBindingId();
}
if (binding == null) {
// default to soap binding
binding = "http://schemas.xmlsoap.org/soap/";
}
try {
if ("http://schemas.xmlsoap.org/soap/".equals(binding)) {
if (bindingConfig == null) {
bindingConfig = new SoapBindingConfiguration();
}
if (bindingConfig instanceof SoapBindingConfiguration
&& !((SoapBindingConfiguration)bindingConfig).isSetStyle()) {
((SoapBindingConfiguration)bindingConfig).setStyle(serviceFactory.getStyle());
}
}
bindingFactory = mgr.getBindingFactory(binding);
return bindingFactory.createBindingInfo(serviceFactory.getService(),
binding, bindingConfig);
} catch (BusException ex) {
throw new ServiceConstructionException(