public Collection<BindingType> getBindingTypes() { ArrayList<BindingType> bindingTypes = new ArrayList<BindingType>(); for (EndpointImplementation implementation : getEndpointImplementations()) { bindingTypes.add(implementation.getBindingType()); } if (bindingTypes.isEmpty()) { //spec says if no bindings are present, use SOAP 1.1 bindingTypes.add(BindingType.SOAP_1_1); } return bindingTypes; } /**
/** * The service name of this web service. * * @return The service name of this web service. */ public String getServiceName() { String serviceName = null; if (annotation != null) { serviceName = annotation.serviceName(); } if (((serviceName == null) || ("".equals(serviceName))) && getEndpointImplementations().size() == 1) { WebService implAnnotation = getEndpointImplementations().iterator().next().getAnnotation(WebService.class); if (implAnnotation != null) { serviceName = implAnnotation.serviceName(); } } if ((serviceName == null) || ("".equals(serviceName))) { serviceName = getSimpleName() + "Service"; } return serviceName; }
/** * The path where this service is mounted. * * @return The path where this service is mounted. */ public String getPath() { for (EndpointImplementation implementation : getEndpointImplementations()) { String path = implementation.getPath(); if (path != null) { return path; } } return "/" + getServiceName(); }
for (EndpointImplementation implementation : ei.getEndpointImplementations()) { String urlPattern = eiPaths.get(implementation.getQualifiedName().toString()); if (urlPattern != null) {