private boolean isEmptywsdl(String wsdlUrl) { Definition definition; try { definition = getBus().getExtension(WSDLManager.class).getDefinition(wsdlUrl); } catch (WSDLException e) { LOG.log(Level.WARNING, "Failed to parse WSDL", e); return true; } if (definition.getPortTypes().isEmpty() && definition.getImports().isEmpty()) { return true; } return false; } }
private boolean isEmptywsdl(String wsdlUrl) { Definition definition; try { definition = getBus().getExtension(WSDLManager.class).getDefinition(wsdlUrl); } catch (WSDLException e) { LOG.log(Level.WARNING, "Failed to parse WSDL", e); return true; } if (definition.getPortTypes().isEmpty() && definition.getImports().isEmpty()) { return true; } return false; } }
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; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
Definition definition = getServiceFactory().getBus() .getExtension(WSDLManager.class) .getDefinition(getServiceFactory().getWsdlURL());
WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName()); boolean setEPName = true; if (features != null) {
WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName()); boolean setEPName = true; if (features != null) {
protected void createEndpoints() { Service service = getService(); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); for (ServiceInfo inf : service.getServiceInfos()) { for (EndpointInfo ei : inf.getEndpoints()) { for (BindingOperationInfo boi : ei.getBinding().getOperations()) { updateBindingOperation(boi); } try { bfm.getBindingFactory(ei.getBinding().getBindingId()); } catch (BusException e1) { continue; } try { Endpoint ep = createEndpoint(ei); service.getEndpoints().put(ei.getName(), ep); } catch (EndpointException e) { throw new ServiceConstructionException(e); } } } }
protected void createEndpoints() { Service service = getService(); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); for (ServiceInfo inf : service.getServiceInfos()) { for (EndpointInfo ei : inf.getEndpoints()) { for (BindingOperationInfo boi : ei.getBinding().getOperations()) { updateBindingOperation(boi); } try { bfm.getBindingFactory(ei.getBinding().getBindingId()); } catch (BusException e1) { continue; } try { Endpoint ep = createEndpoint(ei); service.getEndpoints().put(ei.getName(), ep); } catch (EndpointException e) { throw new ServiceConstructionException(e); } } } }
protected void buildServiceFromClass() { Object o = getBus().getProperty("requireExplicitContractLocation"); if (o != null && ("true".equals(o) || Boolean.TRUE.equals(o))) { col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus())); col.getExtReg().registerSerializer(MimeAttribute.class, new MimeSerializer());
protected void buildServiceFromClass() { Object o = getBus().getProperty("requireExplicitContractLocation"); if (o != null && ("true".equals(o) || Boolean.TRUE.equals(o))) { col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus())); col.getExtReg().registerSerializer(MimeAttribute.class, new MimeSerializer());
public void validateServiceModel() { XmlSchemaValidationManager xsdValidator = getBus().getExtension(XmlSchemaValidationManager.class);
public void validateServiceModel() { XmlSchemaValidationManager xsdValidator = getBus().getExtension(XmlSchemaValidationManager.class);