Tabnine Logo
EndpointImpl.setServiceName
Code IndexAdd Tabnine to your IDE (free)

How to use
setServiceName
method
in
org.apache.cxf.jaxws.EndpointImpl

Best Java code snippets using org.apache.cxf.jaxws.EndpointImpl.setServiceName (Showing top 16 results out of 315)

origin: org.apache.cxf/cxf-rt-frontend-jaxws

setServiceName(serverFactory.getServiceFactory().getServiceQName());
origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}
origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: codecentric/cxf-spring-boot-starter

@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;
}
origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: jonashackt/soap-spring-boot-cxf

@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;
}

origin: jonashackt/tutorial-soap-spring-boot-cxf

@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;
}

origin: Talend/tesb-rt-se

if (cbInterfaceName != null) {
  endpoint.setEndpointName(serverFactory.getEndpointName());
  endpoint.setServiceName(serverFactory.getServiceName());
  if (useWsdlLocation) {
    endpoint.setWsdlLocation(wsdlLocation);
origin: apache/cxf

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);
}
origin: apache/cxf

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);
}
origin: apache/cxf

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());
}
origin: apache/cxf

setServiceName(serverFactory.getServiceFactory().getServiceQName());
org.apache.cxf.jaxwsEndpointImplsetServiceName

Popular methods of EndpointImpl

  • publish
  • <init>
  • setWsdlLocation
  • getInInterceptors
  • getServer
  • getFeatures
  • getOutInterceptors
  • stop
  • getProperties
  • setAddress
  • setEndpointName
  • getOutFaultInterceptors
  • setEndpointName,
  • getOutFaultInterceptors,
  • getBinding,
  • getService,
  • doPublish,
  • getAddress,
  • getServerFactory,
  • setFeatures,
  • setImplementorClass

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now