Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8226

Not able to log webservice calls with corrupt data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.5
    • None
    • logging
    • None
    • Unknown

    Description

      We are providing a webservice connected by multiple customers with no or not much technical knowledge and existing old software. To support them it would be helpful to be able to log webservice calls which even cant be parsed.

      I have implemented a solution by replacing the OutFaultChainInitiatorObserver with a custom version which logs the in message before continuing.

      public class MyOutFaultChainInitiatorObserver extends OutFaultChainInitiatorObserver {      
      
          @Override
          public void onMessage(final Message message) {
              MySlf4jVerboseEventSender.in.handleMessage(message);
              super.onMessage(message);
          }
      }
      

      But it is not ea really clean solution. Would be nice if it would be easier to configure/activate. Additionally I think the request is logged twice if it is parsable but fails with an other error. 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            bmaehr Bernhard Mähr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: