Add the following snippet to beans.xml
<!-- Following logs all inbound and outbound messages -->
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
This will record all the inbound and outbound messages.
Note: I found an issue using the LoggingOutInterceptor explicitly. On a SOAP Fault, the outgoing message would not be recorded if you used the LoggingOutInterceptor. Using the logging feature on the bus fixed it, also, you will only have to define the logging once and it will work for all the services defined in the beans.xml.
<!-- Following logs all inbound and outbound messages -->
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
This will record all the inbound and outbound messages.
Note: I found an issue using the LoggingOutInterceptor explicitly. On a SOAP Fault, the outgoing message would not be recorded if you used the LoggingOutInterceptor. Using the logging feature on the bus fixed it, also, you will only have to define the logging once and it will work for all the services defined in the beans.xml.
No comments:
Post a Comment