private synchronized Endpoint createEndpoint(Message message) { if (mexEndpoint == null) { MEXJaxWsServerFactoryBean factory = new MEXJaxWsServerFactoryBean(message.getExchange().getBus()); try { Endpoint endpoint = factory.createEndpoint(); endpoint.getService().setInvoker(new JAXWSMethodInvoker(ep)); mexEndpoint = endpoint; } catch (Exception ex) { throw new Fault(ex); } } return mexEndpoint; } }
@PostConstruct public Server create() { try { initializeDispatcher(); Endpoint ep = createEndpoint(); server = new ServerImpl(getBus(), ep, getDestinationFactory(), getBindingFactory()); if (invoker == null) { ep.getService().setInvoker(createInvoker()); } else { ep.getService().setInvoker(invoker); } server.start(); } catch (EndpointException e) { throw new ServiceConstructionException(e); } catch (BusException e) { throw new ServiceConstructionException(e); } catch (IOException e) { throw new ServiceConstructionException(e); } applyFeatures(); return server; }
private synchronized Endpoint createEndpoint(Message message) { if (mexEndpoint == null) { MEXJaxWsServerFactoryBean factory = new MEXJaxWsServerFactoryBean(message.getExchange().getBus()); try { Endpoint endpoint = factory.createEndpoint(); endpoint.getService().setInvoker(new JAXWSMethodInvoker(ep)); mexEndpoint = endpoint; } catch (Exception ex) { throw new Fault(ex); } } return mexEndpoint; } }
@Override public Service create() { sendEvent(Event.START_CREATE); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
service.setInvoker(new JAXWSMethodInvoker(this.implementor));
@Override public Service create() { sendEvent(Event.START_CREATE); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
service.setInvoker(new JAXWSMethodInvoker(implementor));
@Override public synchronized Service create() { reset(); sendEvent(Event.START_CREATE); initializeServiceConfigurations(); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } getService().put(MethodDispatcher.class.getName(), getMethodDispatcher()); createEndpoints(); fillInSchemaCrossreferences(); Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
@Override public synchronized Service create() { reset(); sendEvent(Event.START_CREATE); initializeServiceConfigurations(); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } getService().put(MethodDispatcher.class.getName(), getMethodDispatcher()); createEndpoints(); fillInSchemaCrossreferences(); Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
cxfendpoint.getService().setInvoker(invoker); cxfendpoint.getService().setInvoker(invoker);
@Override public synchronized Service create() { reset(); sendEvent(Event.START_CREATE); initializeServiceConfigurations(); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } getService().put(MethodDispatcher.class.getName(), getMethodDispatcher()); createEndpoints(); fillInSchemaCrossreferences(); Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
protected void init() { // configure handlers try { initHandlers(); } catch (final Exception e) { throw new WebServiceException("Error configuring handlers", e); } // Set service to invoke the target ejb service.setInvoker(new EjbMethodInvoker(this.bus, beanContext)); // Remove interceptors that perform handler processing since // handler processing must happen within the EJB container. final Endpoint endpoint = getEndpoint(); removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // Install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } // Install WSS4J interceptor ConfigureCxfSecurity.configure(endpoint, port); }
protected void init() { // configure handlers try { initHandlers(); } catch (Exception e) { throw new WebServiceException("Error configuring handlers", e); } // Set service to invoke the target ejb service.setInvoker(new EjbMethodInvoker(this.bus, beanContext)); // Remove interceptors that perform handler processing since // handler processing must happen within the EJB container. Endpoint endpoint = getEndpoint(); removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // Install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } // Install WSS4J interceptor ConfigureCxfSecurity.configure(endpoint, port); }
@Override protected void init() { // configure handlers try { initHandlers(); } catch (Exception e) { throw new WebServiceException("Error configuring handlers", e); } BeanContext beanContext = bus.getExtension(BeanContext.class); service.setInvoker(new EJBMethodInvoker(this, this.bus, beanContext)); Endpoint endpoint = getEndpoint(); /* * Remove interceptors that perform handler processing since * handler processing must happen within the EJB container. */ removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } }
ep.getService().setInvoker(createInvoker()); } else { ep.getService().setInvoker(invoker);
ep.getService().setInvoker(createInvoker()); } else { ep.getService().setInvoker(invoker);
message.put(AssertionInfoMap.class, new AssertionInfoMap(assertions)); endpoint.getService().setInvoker(invoker); ex.put(Endpoint.class, endpoint); ex.put(Service.class, endpoint.getService());
message.put(AssertionInfoMap.class, new AssertionInfoMap(assertions)); endpoint.getService().setInvoker(invoker); ex.put(Endpoint.class, endpoint); ex.put(Service.class, endpoint.getService());
ep.getService().setInvoker(createInvoker()); } else { ep.getService().setInvoker(invoker);
ep.getService().setInvoker(createInvoker()); } else { ep.getService().setInvoker(invoker);