setServiceName(serverFactory.getServiceFactory().getServiceQName());
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus, weatherService()); endpoint.setServiceName(weatherClient().getServiceName()); endpoint.setWsdlLocation(weatherClient().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); return endpoint; }
@Bean @ConditionalOnProperty(name = "endpoint.autoinit", matchIfMissing = true) public Endpoint endpoint() throws BootStarterCxfException { LOG.info("Autodetection successful. Initializing javax.xml.ws.Endpoint based on " + seiImplementation().getClass().getName()); EndpointImpl endpoint = new EndpointImpl(springBus(), seiImplementation()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(webServiceClient().getServiceName()); endpoint.setWsdlLocation(webServiceClient().getWSDLDocumentLocation().toString()); if (publishedEndpointUrl.equals("NOT_SET")) { endpoint.setPublishedEndpointUrl(webServiceClient.getServiceName().getLocalPart()); } else { endpoint.setPublishedEndpointUrl(publishedEndpointUrl); } // publish the Service under it´s name mentioned in the WSDL inside name attribute (example: <wsdl:service name="Weather">) endpoint.publish(serviceUrlEnding()); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish("/WeatherSoapService_1.0"); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); endpoint.getOutFaultInterceptors().add(soapInterceptor()); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_NAME_URL_PATH); endpoint.getOutFaultInterceptors().add(soapInterceptor()); return endpoint; }
@Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace // "http://www.codecentric.de/namespace/weatherservice/" // Also the WSDLLocation must be set endpoint.setServiceName(weather().getServiceName()); endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString()); endpoint.publish(SERVICE_URL); LoggingFeature logFeature = new LoggingFeature(); logFeature.setPrettyLogging(true); logFeature.initialize(springBus()); endpoint.getFeatures().add(logFeature); return endpoint; }
if (cbInterfaceName != null) { endpoint.setEndpointName(serverFactory.getEndpointName()); endpoint.setServiceName(serverFactory.getServiceName()); if (useWsdlLocation) { endpoint.setWsdlLocation(wsdlLocation);
protected void run() { String address; Object implementor = new ServicePortTypeImpl(); address = "http://localhost:" + PORT + "/schemavalidation"; Endpoint ep = Endpoint.create(implementor); Map<String, Object> map = new HashMap<>(); map.put(Message.SCHEMA_VALIDATION_ENABLED, Boolean.TRUE); ep.setProperties(map); ((EndpointImpl)ep).setWsdlLocation("wsdl_systest_jaxws/schemaValidation.wsdl"); ((EndpointImpl)ep).setServiceName(new QName( "http://cxf.apache.org/jaxws/schemavalidation", "service")); ((EndpointImpl)ep).getInInterceptors().add(new LoggingInInterceptor()); ((EndpointImpl)ep).getOutInterceptors().add(new LoggingOutInterceptor()); ep.publish(address); }
protected void run() { setBus(BusFactory.getDefaultBus()); Object implementor = new AddNumberImpl(); String address = "http://localhost:" + PORT + "/jaxws/add"; //Endpoint.publish(address, implementor); ep = (EndpointImpl) Endpoint.create(implementor); ep.getFeatures().add(new WSAddressingFeature()); ep.publish(address); ep = new EndpointImpl(BusFactory.getThreadDefaultBus(), implementor, null, getWsdl()); ep.setServiceName(new QName("http://apache.org/cxf/systest/ws/addr_feature/", "AddNumbersService")); ep.setEndpointName(new QName("http://apache.org/cxf/systest/ws/addr_feature/", "AddNumbersNonAnonPort")); String address12 = "http://localhost:" + PORT2 + "/jaxws/soap12/add"; ep.getFeatures().add(new WSAddressingFeature()); ep.publish(address12); }
private Server createServerFromJaxwsEndpoint(JaxWsServerFactoryBean factory) { @SuppressWarnings("resource") EndpointImpl endpoint = new EndpointImpl(factory.getBus(), null, factory); endpoint.setWsdlLocation(factory.getWsdlURL()); endpoint.setImplementorClass(factory.getServiceClass()); endpoint.setEndpointName(factory.getEndpointName()); endpoint.setServiceName(factory.getServiceName()); endpoint.setInvoker(factory.getInvoker()); endpoint.setSchemaLocations(factory.getSchemaLocations()); return endpoint.getServer(factory.getAddress()); }
setServiceName(serverFactory.getServiceFactory().getServiceQName());