Created
August 13, 2015 13:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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