- Common ways to obtain EndpointImpl
private void myMethod () {EndpointImpl e =
Object implementor;(EndpointImpl) Endpoint.create(implementor)
- Smart code suggestions by Codota
}
@PostConstruct public void configureInterceptor2Endpoint() { EndpointImpl endpointImpl = (EndpointImpl)endpoint; // we need the implementation here, to configure our Interceptor endpointImpl.getOutFaultInterceptors().add(soapInterceptor()); }
e.getOutFaultInterceptors().add(outInterceptor);
@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; }
cxfendpoint.getOutFaultInterceptors().addAll(endpointBuilder.getCxfOutFaultInterceptors());