Hi Holger,
Actually we have LoggingInInterceptor and LoggingOutInterceptor for that
purpose.
You can add it two your endpoint on server side
EndpointImpl e = (EndpointImpl)Endpoint.publish(address, implementor);
e.getServer().getEndpoint().getInInterceptors().add(new
LoggingInInterceptor());
e.getServer().getEndpoint().getOutInterceptors().add(new
LoggingOutInterceptor());
For client side, you can do it like
HelloPortType port = helloService.getHelloPort();
Client client = ClientProxy.getClient(port);
client.getInInterceptors().add(new LoggingInInterceptor());
client.getInOutterceptors().add(new LoggingOutInterceptor());
Also you can configure log features in spring file, you can refer to
https://svn.apache.org/repos/asf/incubator/cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/cxf-servlet.xml
Best Regards
Freeman
Holger Stolzenberg wrote:
What is the easiest way to log the received and generated SOAP messages. Currently I have
an incoming/outgoing interceptor with phases receive/send that simply log some properties
of the SoapMessage interceptor method param. What I want to log is the raw message data
(<soap:envelope> ... </soap:envelope>).
Mit lieben Grüßen aus dem eWerk
| Holger Stolzenberg
| Softwareentwickler
|
| Geschäftsführer:
| Frank Richter, Erik Wende, Hendrik Schubert
|
| eWerk IT GmbH
| Markt 16
| Leipzig 04109
| http://www.ewerk.com
| HRB 9065, AG Leipzig
| Hauptniederlassung Leipzig
|
| fon +49.341.4 26 49-0
| fax +49.341.4 26 49-88
| mailto:[EMAIL PROTECTED]
|
| Support:
| fon 0700 CALLME24 (0700 22556324)
| fax 0700 CALLME24 (0700 22556324)
|
| Auskünfte und Angebote per Mail
| sind freibleibend und unverbindlich.