@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; }
: serviceHolder.getServiceObject().getWSDLDocumentLocation().toString()); httpHeaders = authProvider.getHTTPHeaders(url);
: serviceHolder.getServiceObject().getWSDLDocumentLocation().toString()); httpHeaders = authProvider.getHTTPHeaders(url);