public QName getServiceQName() { return getServiceQName(true); } public QName getServiceQName(boolean lookup) {
public QName getServiceQName() { return getServiceQName(true); } public QName getServiceQName(boolean lookup) {
/** * This method returns the list of services that matches with the local part of * the service QName. Its current purpose is only for generating a better error * message when the service cannot be found. */ protected List<QName> getProbableServices(Definition definition) { QName serviceQName = getServiceFactory().getServiceQName(); List<QName> probableServices = new LinkedList<QName>(); Map<?, ?> services = definition.getServices(); for (Iterator<?> iterator = services.keySet().iterator(); iterator.hasNext();) { Object key = iterator.next(); if (key instanceof QName) { QName qNameKey = (QName) key; if (qNameKey.getLocalPart() != null && qNameKey.getLocalPart().equals(serviceQName.getLocalPart())) { probableServices.add(qNameKey); } } } return probableServices; }
public String getWsdlURL() { if (wsdlURL == null) { for (AbstractServiceConfiguration c : serviceConfigurations) { wsdlURL = c.getWsdlURL(); if (wsdlURL != null) { break; } } if (null == wsdlURL && getBus() != null) { ServiceContractResolverRegistry registry = getBus() .getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(this.getServiceQName()); if (null != uri) { try { wsdlURL = uri.toURL().toString(); } catch (MalformedURLException e) { LOG.log(Level.FINE, "resolve qname failed", this.getServiceQName()); } } } } if (wsdlURL != null) { // create a unique string so if its an interned string (like // from an annotation), caches will clear wsdlURL = new String(wsdlURL); } } return wsdlURL; }
public String getWsdlURL() { if (wsdlURL == null) { for (AbstractServiceConfiguration c : serviceConfigurations) { wsdlURL = c.getWsdlURL(); if (wsdlURL != null) { break; } } if (null == wsdlURL && getBus() != null) { ServiceContractResolverRegistry registry = getBus() .getExtension(ServiceContractResolverRegistry.class); if (null != registry) { URI uri = registry.getContractLocation(this.getServiceQName()); if (null != uri) { try { wsdlURL = uri.toURL().toString(); } catch (MalformedURLException e) { LOG.log(Level.FINE, "resolve qname failed", this.getServiceQName()); } } } } if (wsdlURL != null) { // create a unique string so if its an interned string (like // from an annotation), caches will clear wsdlURL = new String(wsdlURL); } } return wsdlURL; }
protected Service getServiceFromDefinition(Definition definition) { Service service = definition.getService(getServiceFactory().getServiceQName()); if (service == null) { List<QName> probableServices = getProbableServices(definition); List<QName> allServices = getAllServices(definition); throw new ComponentNotFoundRuntimeException(CxfMessages.invalidOrMissingNamespace( getServiceFactory().getServiceQName(), probableServices, allServices)); } return service; }
LOG.info("Creating Service " + getServiceQName() + " from WSDL: " + url); WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName()); boolean setEPName = true; if (features != null) {
LOG.info("Creating Service " + getServiceQName() + " from WSDL: " + url); WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName()); boolean setEPName = true; if (features != null) {
LOG.info("Creating Service " + getServiceQName() + " from class " + getServiceClass().getName()); setServiceProperties(); serviceInfo.setName(getServiceQName()); serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());
LOG.info("Creating Service " + getServiceQName() + " from class " + getServiceClass().getName()); setServiceProperties(); serviceInfo.setName(getServiceQName()); serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());
server.getEndpoint().getOutInterceptors().add(new AttachmentOutInterceptor()); if (sf.getServiceFactory().getServiceQName() != null) { if (getPojoService() == null) { setPojoService(sf.getServiceFactory().getServiceQName()); setService(sf.getServiceFactory().getServiceQName());