Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Created August 13, 2015 13:01
Show Gist options
  • Save jonashackt/5b4209cf0120f9534786 to your computer and use it in GitHub Desktop.
Save jonashackt/5b4209cf0120f9534786 to your computer and use it in GitHub Desktop.
Activate Logging of SOAP-Messages with Apache CXF seperately on exposed CXF-Endpoint
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
endpoint.publish(SERVICE_NAME_URL_PATH);
endpoint.setWsdlLocation("Weather1.0.wsdl");
LoggingFeature logFeature = new LoggingFeature();
logFeature.setPrettyLogging(true);
logFeature.initialize(springBus());
endpoint.getFeatures().add(logFeature);
return endpoint;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment